mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-22 21:18:28 +03:00
commit
7db4b67267
@ -4,28 +4,24 @@ with stdenv.lib;
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "sxiv";
|
pname = "sxiv";
|
||||||
version = "25";
|
version = "26";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "muennich";
|
owner = "muennich";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
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);
|
configFile = optionalString (conf!=null) (builtins.toFile "config.def.h" conf);
|
||||||
preBuild = optionalString (conf!=null) "cp ${configFile} config.def.h";
|
preBuild = optionalString (conf!=null) "cp ${configFile} config.def.h";
|
||||||
|
|
||||||
buildInputs = [ libXft imlib2 giflib libexif ];
|
buildInputs = [ libXft imlib2 giflib libexif ];
|
||||||
|
|
||||||
|
makeFlags = [ "PREFIX=${placeholder "out"}" ];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
mkdir -p $out/share/applications/
|
install -Dt $out/share/applications sxiv.desktop
|
||||||
cp -v sxiv.desktop $out/share/applications/
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
Loading…
Reference in New Issue
Block a user