Fix tarball build
replaceDependency is based on IFD so it cannot be used in packages. Thankfully what we are doing with libhandy can be easily achieved with sed.
This commit is contained in:
parent
26e044b14a
commit
588e05ddff
|
@ -22,7 +22,7 @@
|
||||||
, at-spi2-core
|
, at-spi2-core
|
||||||
, gnome3
|
, gnome3
|
||||||
, libhandy
|
, libhandy
|
||||||
, replaceDependency
|
, runCommand
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
|
@ -102,11 +102,11 @@ stdenv.mkDerivation rec {
|
||||||
libhandyWithGlade = libhandy.override {
|
libhandyWithGlade = libhandy.override {
|
||||||
enableGlade = true;
|
enableGlade = true;
|
||||||
};
|
};
|
||||||
in (replaceDependency {
|
in runCommand "${libhandy.name}-glade" {} ''
|
||||||
drv = libhandyWithGlade.glade;
|
cp -r "${libhandyWithGlade.glade}" "$out"
|
||||||
oldDependency = libhandyWithGlade.out;
|
chmod -R +w "$out"
|
||||||
newDependency = libhandy.out;
|
sed -e "s#${libhandyWithGlade.out}#${libhandy.out}#g" -e "s#${libhandyWithGlade.glade}#$out#g" -i $(find "$out" -type f)
|
||||||
});
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
|
Loading…
Reference in a new issue