containerd: use removeReferencesTo
This commit is contained in:
parent
061ff21bbf
commit
0c6a1eaa43
|
@ -1,4 +1,4 @@
|
||||||
{ stdenv, lib, fetchFromGitHub
|
{ stdenv, lib, fetchFromGitHub, removeReferencesTo
|
||||||
, go, libapparmor, apparmor-parser, libseccomp }:
|
, go, libapparmor, apparmor-parser, libseccomp }:
|
||||||
|
|
||||||
with lib;
|
with lib;
|
||||||
|
@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
|
||||||
sha256 = "16p8kixhzdx8afpciyf3fjx43xa3qrqpx06r5aqxdrqviw851zh8";
|
sha256 = "16p8kixhzdx8afpciyf3fjx43xa3qrqpx06r5aqxdrqviw851zh8";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ go ];
|
buildInputs = [ removeReferencesTo go ];
|
||||||
|
|
||||||
preBuild = ''
|
preBuild = ''
|
||||||
ln -s $(pwd) vendor/src/github.com/docker/containerd
|
ln -s $(pwd) vendor/src/github.com/docker/containerd
|
||||||
|
@ -26,10 +26,7 @@ stdenv.mkDerivation rec {
|
||||||
'';
|
'';
|
||||||
|
|
||||||
preFixup = ''
|
preFixup = ''
|
||||||
# remove references to go compiler
|
find $out -type f -exec remove-references-to -t ${go} '{}' +
|
||||||
while read file; do
|
|
||||||
sed -ri "s,${go},$(echo "${go}" | sed "s,$NIX_STORE/[^-]*,$NIX_STORE/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee,"),g" $file
|
|
||||||
done < <(find $out/bin -type f 2>/dev/null)
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
|
Loading…
Reference in New Issue