gtk2: move pname & version inside
Since there will not be any updates.
This commit is contained in:
parent
d9b4611dd4
commit
64b75ad5c0
@ -12,12 +12,9 @@ assert cupsSupport -> cups != null;
|
|||||||
|
|
||||||
with stdenv.lib;
|
with stdenv.lib;
|
||||||
|
|
||||||
let
|
|
||||||
pname = "gtk+";
|
|
||||||
version = "2.24.32"; # remove passthru on next update
|
|
||||||
in
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "${pname}-${version}";
|
pname = "gtk+";
|
||||||
|
version = "2.24.32";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://gnome/sources/gtk+/2.24/${pname}-${version}.tar.xz";
|
url = "mirror://gnome/sources/gtk+/2.24/${pname}-${version}.tar.xz";
|
||||||
@ -75,8 +72,6 @@ stdenv.mkDerivation rec {
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
passthru = {
|
passthru = {
|
||||||
# passthru to prevent rebuild but allow pname and version
|
|
||||||
inherit pname version;
|
|
||||||
gtkExeEnvPostBuild = ''
|
gtkExeEnvPostBuild = ''
|
||||||
rm $out/lib/gtk-2.0/2.10.0/immodules.cache
|
rm $out/lib/gtk-2.0/2.10.0/immodules.cache
|
||||||
$out/bin/gtk-query-immodules-2.0 $out/lib/gtk-2.0/2.10.0/immodules/*.so > $out/lib/gtk-2.0/2.10.0/immodules.cache
|
$out/bin/gtk-query-immodules-2.0 $out/lib/gtk-2.0/2.10.0/immodules/*.so > $out/lib/gtk-2.0/2.10.0/immodules.cache
|
||||||
|
Loading…
x
Reference in New Issue
Block a user