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 = "64fc67397220a7749819a432befe9ec35ad9e388";
sha256 = "sha256-6Vf1sm94ukO+AIZ7tLbFecvt2Y5RTE1sq43nOXiQT6U=";
2024-06-16 02:05:11 +01:00
};
nativeBuildInputs = [
pkg-config
];
buildInputs = [
libX11
libXft
imlib2
libexif
];
buildPhase = ''
make
'';
installPhase = ''
mkdir -p $out/bin
mv nsxiv $out/bin
chmod 755 $out/bin/nsxiv
'';
}