nixos-config/de/sxiv/default.nix

49 lines
896 B
Nix

{ stdenv, lib, pkgs ? import <nixpkgs> {}, ... }:
stdenv.mkDerivation rec {
pname = "sxiv-cust";
version = "26-gregory";
src = ./sxiv;
buildPhase = "echo $PWD; echo $src; make all";
installPhase = ''
DESTDIR=$out/ make PREFIX=/ install
'';
buildInputs = with pkgs; [
xorg.libX11
xorg.libXinerama
xorg.libXft
xorg.libXrandr
fontconfig
gnumake
pkg-config
freetype
xorg.libXrender
libexif
imlib2
giflib
];
nativeBuildInputs = with pkgs; [
gnumake
pkg-config
];
meta = {
description = "My fork of sxiv image viewer";
platforms = lib.platforms.linux;
};
strictDeps = true;
postPatch = ''
substituteInPlace Makefile \
--replace "/usr/local" "$out"
'';
}