diff options
author | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2021-11-09 10:20:26 +0100 |
---|---|---|
committer | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2021-11-09 10:20:26 +0100 |
commit | e97c0f628142aa18b0a7ab4d29cb954763f73880 (patch) | |
tree | f3c5cd7ecb70b5af7621b6738c43b205490c8370 /pkgs/applications/graphics/sane | |
parent | 9480c98ce160fce5d5ad5df88f5164827014c7ed (diff) | |
download | nixpkgs-e97c0f628142aa18b0a7ab4d29cb954763f73880.tar nixpkgs-e97c0f628142aa18b0a7ab4d29cb954763f73880.tar.gz nixpkgs-e97c0f628142aa18b0a7ab4d29cb954763f73880.tar.bz2 nixpkgs-e97c0f628142aa18b0a7ab4d29cb954763f73880.tar.lz nixpkgs-e97c0f628142aa18b0a7ab4d29cb954763f73880.tar.xz nixpkgs-e97c0f628142aa18b0a7ab4d29cb954763f73880.tar.zst nixpkgs-e97c0f628142aa18b0a7ab4d29cb954763f73880.zip |
sane: remove ? null from inputs, cleanup meta
Diffstat (limited to 'pkgs/applications/graphics/sane')
-rw-r--r-- | pkgs/applications/graphics/sane/xsane.nix | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/pkgs/applications/graphics/sane/xsane.nix b/pkgs/applications/graphics/sane/xsane.nix index 8febb819bb3..007483fb5e2 100644 --- a/pkgs/applications/graphics/sane/xsane.nix +++ b/pkgs/applications/graphics/sane/xsane.nix @@ -7,13 +7,11 @@ , gtk2 , pkg-config , libpng -, libusb-compat-0_1 ? null +, libusb-compat-0_1 , gimpSupport ? false -, gimp ? null +, gimp }: -assert gimpSupport -> gimp != null; - stdenv.mkDerivation rec { pname = "xsane"; version = "0.999"; @@ -29,14 +27,15 @@ stdenv.mkDerivation rec { ''; nativeBuildInputs = [ pkg-config ]; - buildInputs = [ libpng sane-backends sane-frontends libX11 gtk2 ] - ++ (if libusb-compat-0_1 != null then [ libusb-compat-0_1 ] else [ ]) + + buildInputs = [ libpng libusb-compat-0_1 sane-backends sane-frontends libX11 gtk2 ] ++ lib.optional gimpSupport gimp; - meta = { + meta = with lib; { homepage = "http://www.sane-project.org/"; description = "Graphical scanning frontend for sane"; - license = lib.licenses.gpl2Plus; - platforms = with lib.platforms; linux; + license = licenses.gpl2Plus; + platforms = platforms.linux; + maintainers = with maintainers; [ ]; }; } |