Merge pull request #255331 from yu-re-ka/parallel-cross
This commit is contained in:
commit
dc1668abd0
1 changed files with 7 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
{ fetchurl, lib, stdenv, perl, makeWrapper, procps, coreutils }:
|
||||
{ fetchurl, lib, stdenv, perl, makeWrapper, procps, coreutils, buildPackages }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "parallel";
|
||||
|
@ -14,6 +14,11 @@ stdenv.mkDerivation rec {
|
|||
nativeBuildInputs = [ makeWrapper ];
|
||||
buildInputs = [ perl procps ];
|
||||
|
||||
postPatch = lib.optionalString (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||
substituteInPlace Makefile.in \
|
||||
--replace '$(DESTDIR)$(bindir)/parallel --shell-completion' '${lib.getExe buildPackages.parallel} --shell-completion'
|
||||
'';
|
||||
|
||||
preInstall = ''
|
||||
patchShebangs ./src/parallel
|
||||
'';
|
||||
|
@ -48,5 +53,6 @@ stdenv.mkDerivation rec {
|
|||
license = licenses.gpl3Plus;
|
||||
platforms = platforms.all;
|
||||
maintainers = with maintainers; [ pSub vrthra tomberek ];
|
||||
mainProgram = "parallel";
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue