forked from mirrors/nixpkgs
feh: correct license
This commit is contained in:
parent
4cb2e26459
commit
e98d8f7207
|
@ -586,6 +586,11 @@ in mkLicense lset) ({
|
||||||
spdxId = "MIT";
|
spdxId = "MIT";
|
||||||
fullName = "MIT License";
|
fullName = "MIT License";
|
||||||
};
|
};
|
||||||
|
# https://spdx.org/licenses/MIT-feh.html
|
||||||
|
mit-feh = {
|
||||||
|
spdxId = "MIT-feh";
|
||||||
|
fullName = "feh License";
|
||||||
|
};
|
||||||
|
|
||||||
mpl10 = {
|
mpl10 = {
|
||||||
spdxId = "MPL-1.0";
|
spdxId = "MPL-1.0";
|
||||||
|
|
|
@ -3,8 +3,6 @@
|
||||||
, curl, libexif, jpegexiforient, perl
|
, curl, libexif, jpegexiforient, perl
|
||||||
, enableAutoreload ? !stdenv.hostPlatform.isDarwin }:
|
, enableAutoreload ? !stdenv.hostPlatform.isDarwin }:
|
||||||
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "feh";
|
pname = "feh";
|
||||||
version = "3.8";
|
version = "3.8";
|
||||||
|
@ -22,22 +20,24 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
makeFlags = [
|
makeFlags = [
|
||||||
"PREFIX=${placeholder "out"}" "exif=1"
|
"PREFIX=${placeholder "out"}" "exif=1"
|
||||||
] ++ optional stdenv.isDarwin "verscmp=0"
|
] ++ lib.optional stdenv.isDarwin "verscmp=0"
|
||||||
++ optional enableAutoreload "inotify=1";
|
++ lib.optional enableAutoreload "inotify=1";
|
||||||
|
|
||||||
installTargets = [ "install" ];
|
installTargets = [ "install" ];
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
wrapProgram "$out/bin/feh" --prefix PATH : "${makeBinPath [ libjpeg jpegexiforient ]}" \
|
wrapProgram "$out/bin/feh" --prefix PATH : "${lib.makeBinPath [ libjpeg jpegexiforient ]}" \
|
||||||
--add-flags '--theme=feh'
|
--add-flags '--theme=feh'
|
||||||
'';
|
'';
|
||||||
|
|
||||||
checkInputs = lib.singleton (perl.withPackages (p: [ p.TestCommand ]));
|
checkInputs = lib.singleton (perl.withPackages (p: [ p.TestCommand ]));
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
|
|
||||||
meta = {
|
meta = with lib; {
|
||||||
description = "A light-weight image viewer";
|
description = "A light-weight image viewer";
|
||||||
homepage = "https://feh.finalrewind.org/";
|
homepage = "https://feh.finalrewind.org/";
|
||||||
license = licenses.mit;
|
# released under a variant of the MIT license
|
||||||
|
# https://spdx.org/licenses/MIT-feh.html
|
||||||
|
license = licenses.mit-feh;
|
||||||
maintainers = with maintainers; [ viric willibutz globin ma27 ];
|
maintainers = with maintainers; [ viric willibutz globin ma27 ];
|
||||||
platforms = platforms.unix;
|
platforms = platforms.unix;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue