diff options
author | AndersonTorres <torres.anderson.85@protonmail.com> | 2021-02-07 20:52:30 -0300 |
---|---|---|
committer | AndersonTorres <torres.anderson.85@protonmail.com> | 2021-02-07 20:52:30 -0300 |
commit | 3dcc51a630bc386c04f340344a3f49ddc5482865 (patch) | |
tree | b313fd0f3b3854dc76baaa8b9640ba371edce994 | |
parent | c22b718a289a13e658342fc8805a5b8406e8216e (diff) | |
download | nixpkgs-3dcc51a630bc386c04f340344a3f49ddc5482865.tar nixpkgs-3dcc51a630bc386c04f340344a3f49ddc5482865.tar.gz nixpkgs-3dcc51a630bc386c04f340344a3f49ddc5482865.tar.bz2 nixpkgs-3dcc51a630bc386c04f340344a3f49ddc5482865.tar.lz nixpkgs-3dcc51a630bc386c04f340344a3f49ddc5482865.tar.xz nixpkgs-3dcc51a630bc386c04f340344a3f49ddc5482865.tar.zst nixpkgs-3dcc51a630bc386c04f340344a3f49ddc5482865.zip |
libfm: cosmetic changes
-rw-r--r-- | pkgs/development/libraries/libfm/default.nix | 33 |
1 files changed, 20 insertions, 13 deletions
diff --git a/pkgs/development/libraries/libfm/default.nix b/pkgs/development/libraries/libfm/default.nix index c004ee6618b..3e91c55743f 100644 --- a/pkgs/development/libraries/libfm/default.nix +++ b/pkgs/development/libraries/libfm/default.nix @@ -1,14 +1,23 @@ -{ lib, stdenv, fetchurl, glib, intltool, menu-cache, pango, pkg-config, vala +{ lib +, stdenv +, fetchurl +, glib +, intltool +, menu-cache +, pango +, pkg-config +, vala , extraOnly ? false -, withGtk3 ? false, gtk2, gtk3 }: +, withGtk3 ? true , gtk3, gtk2 +}: let gtk = if withGtk3 then gtk3 else gtk2; inherit (lib) optional; in stdenv.mkDerivation rec { - name = if extraOnly - then "libfm-extra-${version}" - else "libfm-${version}"; + pname = if extraOnly + then "libfm-extra" + else "libfm"; version = "1.3.2"; src = fetchurl { @@ -17,16 +26,14 @@ stdenv.mkDerivation rec { }; nativeBuildInputs = [ vala pkg-config intltool ]; - buildInputs = [ glib gtk pango ] ++ optional (!extraOnly) menu-cache; + buildInputs = [ glib gtk pango ] + ++ optional (!extraOnly) menu-cache; - configureFlags = [ - "--sysconfdir=/etc" - ] ++ optional extraOnly "--with-extra-only" - ++ optional withGtk3 "--with-gtk=3"; + configureFlags = [ "--sysconfdir=/etc" ] + ++ optional extraOnly "--with-extra-only" + ++ optional withGtk3 "--with-gtk=3"; - installFlags = [ - "sysconfdir=${placeholder "out"}/etc" - ]; + installFlags = [ "sysconfdir=${placeholder "out"}/etc" ]; # libfm-extra is pulled in by menu-cache and thus leads to a collision for libfm postInstall = optional (!extraOnly) '' |