git.iko.soy/typeable/nixpkgs
on master help sign in
gtk+: refactor name (#100947)

* gtk+: refactor name

commit86b885a4a0ecd73aea803ff44e48973e4a14b984 authorIvan Tham <pickfire@riseup.net> dateWed 21 Oct 2020, 01:00 (6 years ago) parentafc8027
1 file changed+9−2
pkgs/development/libraries/gtk/2.x.nix+9−2
pkgs/development/libraries/gtk/2.x.nix+9−2
@@ -12,11 +12,18 @@ assert cupsSupport -> cups != null;
1212
1313with stdenv.lib;
1414
15+let
16+ pname = "gtk+";
17+ version = "2.24.32"; # remove passthru on next update
18+in
1519stdenv.mkDerivation rec {
16− name = "gtk+-2.24.32";
20+ name = "${pname}-${version}";
21+
22+ # passthru to prevent rebuild but allow pname and version
23+ passthru = { inherit pname version; };
1724
1825 src = fetchurl {
19− url = "mirror://gnome/sources/gtk+/2.24/${name}.tar.xz";
26+ url = "mirror://gnome/sources/gtk+/2.24/${pname}-${version}.tar.xz";
2027 sha256 = "b6c8a93ddda5eabe3bfee1eb39636c9a03d2a56c7b62828b359bf197943c582e";
2128 };
2229