created nsxiv package

This commit is contained in:
Sam 2024-06-16 02:05:11 +01:00
parent 20da292709
commit 08f1789b50
2 changed files with 44 additions and 0 deletions

View File

@ -3,4 +3,5 @@ pkgs: {
st = pkgs.callPackage ./st { };
dwmblocks = pkgs.callPackage ./dwmblocks { };
dmenu = pkgs.callPackage ./dmenu { };
nsxiv = pkgs.callPackage ./nsxiv { };
}

43
pkgs/nsxiv/default.nix Normal file
View File

@ -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
'';
}