mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 22:20:51 +00:00
dea66a1cb3
name would end up as "sxiv-v".
28 lines
721 B
Nix
28 lines
721 B
Nix
{ stdenv, fetchFromGitHub, libX11, imlib2, giflib, libexif }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "sxiv-${version}";
|
|
version = "1.3.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "muennich";
|
|
repo = "sxiv";
|
|
rev = "v${version}";
|
|
sha256 = "1f4gz1qjhb44bbb3q5fqk439zyipkwnr19zhg89yq2pgmzzzqr2h";
|
|
};
|
|
|
|
postUnpack = ''
|
|
substituteInPlace $sourceRoot/Makefile \
|
|
--replace /usr/local $out
|
|
'';
|
|
|
|
buildInputs = [ libX11 imlib2 giflib libexif ];
|
|
meta = {
|
|
description = "Simple X Image Viewer";
|
|
homepage = "https://github.com/muennich/sxiv";
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
|
platforms = stdenv.lib.platforms.linux;
|
|
maintainers = with stdenv.lib.maintainers; [ fuuzetsu ];
|
|
};
|
|
}
|