sxiv: 25 -> 26, minor cleanup (#77861)

sxiv: 25 -> 26, minor cleanup
This commit is contained in:
Vladyslav M 2020-01-19 13:58:19 +02:00 committed by GitHub
commit 7db4b67267
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,28 +4,24 @@ with stdenv.lib;
stdenv.mkDerivation rec {
pname = "sxiv";
version = "25";
version = "26";
src = fetchFromGitHub {
owner = "muennich";
repo = pname;
rev = "v${version}";
sha256 = "13s1lfar142hq1j7xld0ri616p4bqs57b17yr4d0b9a9w7liz4hp";
sha256 = "0xaawlfdy7b277m38mgg4423kd7p1ffn0dq4hciqs6ivbb3q9c4f";
};
postUnpack = ''
substituteInPlace $sourceRoot/Makefile \
--replace /usr/local $out
'';
configFile = optionalString (conf!=null) (builtins.toFile "config.def.h" conf);
preBuild = optionalString (conf!=null) "cp ${configFile} config.def.h";
buildInputs = [ libXft imlib2 giflib libexif ];
makeFlags = [ "PREFIX=${placeholder "out"}" ];
postInstall = ''
mkdir -p $out/share/applications/
cp -v sxiv.desktop $out/share/applications/
install -Dt $out/share/applications sxiv.desktop
'';
meta = {