mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 08:23:09 +00:00
Merge pull request #96538 from Mic92/go-references
buildGoModule/buildGoPackage: Remove go references from lib,libexec
This commit is contained in:
commit
bba8571c39
@ -180,7 +180,7 @@ rec {
|
||||
'';
|
||||
|
||||
preFixup = ''
|
||||
find $out -type f -exec remove-references-to -t ${go} -t ${stdenv.cc.cc} '{}' +
|
||||
find $out -type f -exec remove-references-to -t ${stdenv.cc.cc} '{}' +
|
||||
'' + optionalString (stdenv.isLinux) ''
|
||||
find $out -type f -exec remove-references-to -t ${stdenv.glibc.dev} '{}' +
|
||||
'';
|
||||
|
@ -67,10 +67,6 @@ buildGoPackage rec {
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
postFixup = ''
|
||||
find $out/libexec/ -type f -executable -exec remove-references-to -t ${go} '{}' + || true
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = "http://www.sylabs.io/";
|
||||
description = "Application containers for linux";
|
||||
|
@ -108,7 +108,6 @@ buildGoPackage rec {
|
||||
installPhase = ''
|
||||
make install PREFIX="$out" SYSTEMD_LIB_DIR="$out/lib" -C go/src/${goPackagePath}
|
||||
mv $out/share/gocode $out/share/go
|
||||
remove-references-to -t ${go} $out/lib/deepin-api/*
|
||||
'';
|
||||
|
||||
postFixup = ''
|
||||
|
@ -134,7 +134,6 @@ buildGoPackage rec {
|
||||
|
||||
installPhase = ''
|
||||
make install PREFIX="$out" -C go/src/${goPackagePath}
|
||||
remove-references-to -t ${go} $out/lib/deepin-daemon/*
|
||||
searchHardCodedPaths $out
|
||||
'';
|
||||
|
||||
|
@ -139,7 +139,6 @@ buildGoPackage rec {
|
||||
installPhase = ''
|
||||
make install PREFIX="$out" -C go/src/${goPackagePath}
|
||||
rm -rf $out/share/lightdm # this is uselesss for NixOS
|
||||
remove-references-to -t ${go} $out/sbin/*
|
||||
'';
|
||||
|
||||
postFixup = ''
|
||||
|
@ -235,7 +235,7 @@ let
|
||||
'';
|
||||
|
||||
preFixup = (args.preFixup or "") + ''
|
||||
find $out/bin -type f -exec ${removeExpr removeReferences} '{}' + || true
|
||||
find $out/{bin,libexec,lib} -type f 2>/dev/null | xargs -r ${removeExpr removeReferences} || true
|
||||
'';
|
||||
|
||||
strictDeps = true;
|
||||
|
@ -211,8 +211,7 @@ let
|
||||
'';
|
||||
|
||||
preFixup = preFixup + ''
|
||||
find $out/bin -type f -exec ${removeExpr removeReferences} '{}' + || true
|
||||
find $out/libexec -type f -exec ${removeExpr removeReferences} '{}' + || true
|
||||
find $out/{bin,libexec,lib} -type f 2>/dev/null | xargs -r ${removeExpr removeReferences} || true
|
||||
'';
|
||||
|
||||
strictDeps = true;
|
||||
|
@ -34,10 +34,6 @@ buildGoModule rec {
|
||||
make install
|
||||
'';
|
||||
|
||||
preFixup = ''
|
||||
remove-references-to -t ${fscrypt-experimental.go} $out/lib/security/pam_fscrypt.so
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description =
|
||||
"A high-level tool for the management of Linux filesystem encryption";
|
||||
|
Loading…
Reference in New Issue
Block a user