singularity: prepatch path to cp in 3.2.1

This commit is contained in:
scalavision 2019-08-25 18:31:17 +00:00
parent b09407a573
commit 3ce3e75946

View file

@ -31,6 +31,11 @@ buildGoPackage rec {
nativeBuildInputs = [ removeReferencesTo utillinux which makeWrapper ];
propagatedBuildInputs = [ coreutils squashfsTools ];
prePatch = ''
substituteInPlace internal/pkg/build/copy/copy.go \
--replace /bin/cp ${coreutils}/bin/cp
'';
postConfigure = ''
cd go/src/github.com/sylabs/singularity