44 lines
748 B
Nix
44 lines
748 B
Nix
{ 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=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
libX11
|
|
libXft
|
|
imlib2
|
|
libexif
|
|
];
|
|
|
|
buildPhase = ''
|
|
make
|
|
'';
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
mv nsxiv $out/bin
|
|
chmod 755 $out/bin/nsxiv
|
|
'';
|
|
|
|
}
|
|
|