mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 15:33:13 +00:00
Merge pull request #255331 from yu-re-ka/parallel-cross
This commit is contained in:
commit
dc1668abd0
@ -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 New Issue
Block a user