nixos/pkgs/nsxiv/default.nix

44 lines
748 B
Nix
Raw Normal View History

2024-06-16 02:05:11 +01:00
{ 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
'';
}