mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 08:23:09 +00:00
[Backport release-24.11] unison: 2.53.5 -> 2.53.7 (#356989)
This commit is contained in:
commit
8bc565b893
@ -1,38 +1,45 @@
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, ocamlPackages
|
||||
, copyDesktopItems
|
||||
, makeDesktopItem
|
||||
, wrapGAppsHook3
|
||||
, gsettings-desktop-schemas
|
||||
, enableX11 ? !stdenv.hostPlatform.isDarwin
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
ocamlPackages,
|
||||
copyDesktopItems,
|
||||
makeDesktopItem,
|
||||
wrapGAppsHook3,
|
||||
gsettings-desktop-schemas,
|
||||
enableX11 ? !stdenv.hostPlatform.isDarwin,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "unison";
|
||||
version = "2.53.5";
|
||||
version = "2.53.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "bcpierce00";
|
||||
repo = "unison";
|
||||
rev = "v${finalAttrs.version}";
|
||||
hash = "sha256-XCdK38jG7tRI+/Zk72JVY8a/pPJF6KVaf8l2s3hgxLs=";
|
||||
hash = "sha256-QmYcxzsnbRDQdqkLh82OLWrLF6v3qzf1aOIcnz0kwEk=";
|
||||
};
|
||||
|
||||
strictDeps = true;
|
||||
|
||||
# uimac requires xcode
|
||||
postPatch = ''
|
||||
sed -i -e 's/ macuimaybe//' src/Makefile
|
||||
'';
|
||||
nativeBuildInputs =
|
||||
[
|
||||
ocamlPackages.ocaml
|
||||
ocamlPackages.findlib
|
||||
]
|
||||
++ lib.optionals enableX11 [
|
||||
copyDesktopItems
|
||||
wrapGAppsHook3
|
||||
];
|
||||
buildInputs = lib.optionals enableX11 [
|
||||
gsettings-desktop-schemas
|
||||
ocamlPackages.lablgtk3
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ ocamlPackages.ocaml ocamlPackages.findlib ]
|
||||
++ lib.optionals enableX11 [ copyDesktopItems wrapGAppsHook3 ];
|
||||
buildInputs = lib.optionals enableX11 [ gsettings-desktop-schemas ocamlPackages.lablgtk3 ];
|
||||
|
||||
makeFlags = [ "PREFIX=$(out)" ]
|
||||
++ lib.optionals (!ocamlPackages.ocaml.nativeCompilers) [ "NATIVE=false" ];
|
||||
makeFlags = [
|
||||
"PREFIX=$(out)"
|
||||
] ++ lib.optionals (!ocamlPackages.ocaml.nativeCompilers) [ "NATIVE=false" ];
|
||||
|
||||
postInstall = lib.optionalString enableX11 ''
|
||||
install -D $src/icons/U.svg $out/share/icons/hicolor/scalable/apps/unison.svg
|
||||
@ -47,17 +54,21 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
genericName = "File synchronization tool";
|
||||
exec = "unison-gui";
|
||||
icon = "unison";
|
||||
categories = [ "Utility" "FileTools" "GTK" ];
|
||||
categories = [
|
||||
"Utility"
|
||||
"FileTools"
|
||||
"GTK"
|
||||
];
|
||||
startupNotify = true;
|
||||
startupWMClass = "Unison";
|
||||
});
|
||||
|
||||
meta = with lib; {
|
||||
meta = {
|
||||
homepage = "https://www.cis.upenn.edu/~bcpierce/unison/";
|
||||
description = "Bidirectional file synchronizer";
|
||||
license = licenses.gpl3Plus;
|
||||
maintainers = with maintainers; [ nevivurn ];
|
||||
platforms = platforms.unix;
|
||||
license = lib.licenses.gpl3Plus;
|
||||
maintainers = with lib.maintainers; [ nevivurn ];
|
||||
platforms = lib.platforms.unix;
|
||||
broken = stdenv.hostPlatform.isDarwin && enableX11; # unison-gui and uimac are broken on darwin
|
||||
mainProgram = if enableX11 then "unison-gui" else "unison";
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user