mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
sxiv: remove 'with lib;'
This commit is contained in:
parent
04d23606b5
commit
83d6138b73
@ -1,7 +1,5 @@
|
|||||||
{ lib, stdenv, fetchFromGitHub, libXft, imlib2, giflib, libexif, conf ? null }:
|
{ lib, stdenv, fetchFromGitHub, libXft, imlib2, giflib, libexif, conf ? null }:
|
||||||
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "sxiv";
|
pname = "sxiv";
|
||||||
version = "26";
|
version = "26";
|
||||||
@ -13,8 +11,8 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "0xaawlfdy7b277m38mgg4423kd7p1ffn0dq4hciqs6ivbb3q9c4f";
|
sha256 = "0xaawlfdy7b277m38mgg4423kd7p1ffn0dq4hciqs6ivbb3q9c4f";
|
||||||
};
|
};
|
||||||
|
|
||||||
configFile = optionalString (conf!=null) (builtins.toFile "config.def.h" conf);
|
configFile = lib.optionalString (conf!=null) (builtins.toFile "config.def.h" conf);
|
||||||
preBuild = optionalString (conf!=null) "cp ${configFile} config.def.h";
|
preBuild = lib.optionalString (conf!=null) "cp ${configFile} config.def.h";
|
||||||
|
|
||||||
buildInputs = [ libXft imlib2 giflib libexif ];
|
buildInputs = [ libXft imlib2 giflib libexif ];
|
||||||
|
|
||||||
@ -24,7 +22,7 @@ stdenv.mkDerivation rec {
|
|||||||
install -Dt $out/share/applications sxiv.desktop
|
install -Dt $out/share/applications sxiv.desktop
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = with lib; {
|
||||||
description = "Simple X Image Viewer";
|
description = "Simple X Image Viewer";
|
||||||
homepage = "https://github.com/muennich/sxiv";
|
homepage = "https://github.com/muennich/sxiv";
|
||||||
license = lib.licenses.gpl2Plus;
|
license = lib.licenses.gpl2Plus;
|
||||||
|
Loading…
Reference in New Issue
Block a user