forked from mirrors/nixpkgs
commit
15c9a0054c
|
@ -1,18 +1,19 @@
|
|||
{ stdenv, makeWrapper, fetchurl, xlibsWrapper, imlib2, libjpeg, libpng
|
||||
, libXinerama, curl, libexif }:
|
||||
, libXinerama, curl, libexif, perlPackages }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "feh-2.15.2";
|
||||
name = "feh-2.15.4";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://feh.finalrewind.org/${name}.tar.bz2";
|
||||
sha256 = "0bnfk50y2l5zkr292l4yyws1m7ibdmr398vxj7c0djh965frpj1q";
|
||||
sha256 = "b8a9c29f37b1349228b19866f712b677e2a150837bc46be8c5d6348dd4850758";
|
||||
};
|
||||
|
||||
outputs = [ "out" "doc" ];
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
buildInputs = [ xlibsWrapper imlib2 libjpeg libpng libXinerama curl libexif ];
|
||||
buildInputs = [ xlibsWrapper imlib2 libjpeg libpng libXinerama curl libexif ]
|
||||
++ stdenv.lib.optional doCheck [ perlPackages.TestCommand perlPackages.TestHarness ];
|
||||
|
||||
preBuild = ''
|
||||
makeFlags="PREFIX=$out exif=1"
|
||||
|
@ -23,6 +24,11 @@ stdenv.mkDerivation rec {
|
|||
--add-flags '--theme=feh'
|
||||
'';
|
||||
|
||||
checkPhase = ''
|
||||
PERL5LIB="${perlPackages.TestCommand}/lib/perl5/site_perl" make test
|
||||
'';
|
||||
doCheck = true;
|
||||
|
||||
meta = {
|
||||
description = "A light-weight image viewer";
|
||||
homepage = https://derf.homelinux.org/projects/feh/;
|
||||
|
|
|
@ -12046,6 +12046,19 @@ let self = _self // overrides; _self = with self; {
|
|||
};
|
||||
};
|
||||
|
||||
TestCommand = buildPerlPackage {
|
||||
name = "Test-Command-0.11";
|
||||
src = fetchurl {
|
||||
url = mirror://cpan/authors/id/D/DA/DANBOO/Test-Command-0.11.tar.gz;
|
||||
sha256 = "0cwm3c4d49mdrbm6vgh78b3x8mk730l0zg8i7xb9z8bkx9pzr8r8";
|
||||
};
|
||||
meta = {
|
||||
homepage = https://github.com/danboo/perl-test-command;
|
||||
description = "Test routines for external commands ";
|
||||
license = with stdenv.lib.licenses; [ artistic1 gpl1 ];
|
||||
};
|
||||
};
|
||||
|
||||
TestCPANMeta = buildPerlPackage {
|
||||
name = "Test-CPAN-Meta-0.23";
|
||||
src = fetchurl {
|
||||
|
|
Loading…
Reference in a new issue