mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
nsxiv: 29 → 30
This commit is contained in:
parent
350fd00444
commit
3da0342d6d
1 changed files with 26 additions and 12 deletions
|
@ -1,43 +1,58 @@
|
||||||
{ lib
|
{ lib
|
||||||
, stdenv
|
, stdenv
|
||||||
, fetchFromGitHub
|
, fetchFromGitea
|
||||||
|
, fetchpatch
|
||||||
, giflib
|
, giflib
|
||||||
, imlib2
|
, imlib2
|
||||||
, libXft
|
, libXft
|
||||||
, libexif
|
, libexif
|
||||||
, libwebp
|
, libwebp
|
||||||
|
, libinotify-kqueue
|
||||||
, conf ? null
|
, conf ? null
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "nsxiv";
|
pname = "nsxiv";
|
||||||
version = "29";
|
version = "30";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitea {
|
||||||
|
domain = "codeberg.org";
|
||||||
owner = "nsxiv";
|
owner = "nsxiv";
|
||||||
repo = pname;
|
repo = "nsxiv";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
hash = "sha256-JUF2cF6QeAXk6G76uMu3reaMgxp2RcqHDbamkNufwqE=";
|
hash = "sha256-swzTdQ6ow1At4bKRORqz6fb0Ej92yU9rlI/OgcinPu4=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
# Fix build failure when _SC_PHYS_PAGES is not defined
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://codeberg.org/nsxiv/nsxiv/commit/1a50bff9f300f84e93a6e7035657e6029e7e8183.patch";
|
||||||
|
hash = "sha256-PpUqGVWaJ06EVu3tBKVzOh8HYvT6wAG3bvY6wUD+dTM=";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
giflib
|
giflib
|
||||||
imlib2
|
imlib2
|
||||||
libXft
|
libXft
|
||||||
libexif
|
libexif
|
||||||
libwebp
|
libwebp
|
||||||
];
|
] ++ lib.optional stdenv.isDarwin libinotify-kqueue;
|
||||||
|
|
||||||
preBuild = lib.optionalString (conf!=null) ''
|
preBuild = lib.optionalString (conf!=null) ''
|
||||||
cp ${(builtins.toFile "config.def.h" conf)} config.def.h
|
cp ${(builtins.toFile "config.def.h" conf)} config.def.h
|
||||||
'';
|
'';
|
||||||
|
|
||||||
makeFlags = [
|
NIX_LDFLAGS = lib.optionalString stdenv.isDarwin "-linotify";
|
||||||
"PREFIX=${placeholder "out"}"
|
|
||||||
];
|
makeFlags = [ "CC:=$(CC)" ];
|
||||||
|
|
||||||
|
installFlags = [ "PREFIX=$(out)" ];
|
||||||
|
|
||||||
|
installTargets = [ "install-all" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://nsxiv.github.io/nsxiv/";
|
homepage = "https://nsxiv.codeberg.page/";
|
||||||
description = "New Suckless X Image Viewer";
|
description = "New Suckless X Image Viewer";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
nsxiv is a fork of now unmaintained sxiv with the purpose of being a
|
nsxiv is a fork of now unmaintained sxiv with the purpose of being a
|
||||||
|
@ -54,8 +69,7 @@ stdenv.mkDerivation rec {
|
||||||
- Display image name/path in X title
|
- Display image name/path in X title
|
||||||
'';
|
'';
|
||||||
license = licenses.gpl2Plus;
|
license = licenses.gpl2Plus;
|
||||||
maintainers = with maintainers; [ AndersonTorres ];
|
maintainers = with maintainers; [ AndersonTorres sikmir ];
|
||||||
platforms = platforms.unix;
|
platforms = platforms.unix;
|
||||||
broken = stdenv.isDarwin;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue