created nsxiv package
This commit is contained in:
parent
20da292709
commit
08f1789b50
|
@ -3,4 +3,5 @@ pkgs: {
|
|||
st = pkgs.callPackage ./st { };
|
||||
dwmblocks = pkgs.callPackage ./dwmblocks { };
|
||||
dmenu = pkgs.callPackage ./dmenu { };
|
||||
nsxiv = pkgs.callPackage ./nsxiv { };
|
||||
}
|
||||
|
|
|
@ -0,0 +1,43 @@
|
|||
{ pkgs ? import <nixpkgs> { }
|
||||
, fetchFromGitea ? pkgs.fetchFromGitea
|
||||
, pkg-config ? pkgs.pkg-config
|
||||
, libX11 ? pkgs.xorg.libX11
|
||||
, libXft ? pkgs.xorg.libXft
|
||||
, imlib2 ? pkgs.imlib2
|
||||
, libexif ? pkgs.libexif
|
||||
}:
|
||||
pkgs.stdenv.mkDerivation {
|
||||
pname = "nsxiv";
|
||||
name = "nsxiv";
|
||||
|
||||
src = fetchFromGitea {
|
||||
domain = "git.bitlab21.com";
|
||||
owner = "sam";
|
||||
repo = "nsxiv";
|
||||
rev = "99f685df84039484b4d4fcd7dfe09ecdb4e2fc06";
|
||||
sha256 = "sha256-J6axA/622FlKwlEtsz9kaCVPhmYVK9uGLQ10+jPCIXg=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
libX11
|
||||
libXft
|
||||
imlib2
|
||||
libexif
|
||||
];
|
||||
|
||||
buildPhase = ''
|
||||
make
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
mv nsxiv $out/bin
|
||||
chmod 755 $out/bin/nsxiv
|
||||
'';
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue