gtk2: fix eval with old Nix
This commit is contained in:
@@ -19,9 +19,6 @@ in
|
|||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "${pname}-${version}";
|
name = "${pname}-${version}";
|
||||||
|
|
||||||
# passthru to prevent rebuild but allow pname and version
|
|
||||||
passthru = { inherit pname version; };
|
|
||||||
|
|
||||||
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";
|
||||||
sha256 = "b6c8a93ddda5eabe3bfee1eb39636c9a03d2a56c7b62828b359bf197943c582e";
|
sha256 = "b6c8a93ddda5eabe3bfee1eb39636c9a03d2a56c7b62828b359bf197943c582e";
|
||||||
@@ -78,6 +75,8 @@ 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
|
||||||
|
|||||||
Reference in New Issue
Block a user