mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
Merge pull request #290044 from justinas/git-radar-coreutils-darwin
git-radar: add coreutils-prefixed to PATH on darwin
This commit is contained in:
commit
77aff3d3bc
@ -1,4 +1,4 @@
|
||||
{lib, stdenv, fetchFromGitHub}:
|
||||
{ coreutils-prefixed, lib, makeWrapper, stdenv, fetchFromGitHub }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "git-radar";
|
||||
@ -11,12 +11,17 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "0c3zp8s4w7m4s71qgwk1jyfc8yzw34f2hi43x1w437ypgabwg81j";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
|
||||
dontBuild = true;
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp git-radar fetch.sh prompt.bash prompt.zsh radar-base.sh $out
|
||||
ln -s $out/git-radar $out/bin
|
||||
${lib.optionalString stdenv.isDarwin ''
|
||||
wrapProgram $out/git-radar --prefix PATH : ${lib.makeBinPath [ coreutils-prefixed ]}
|
||||
''}
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
|
Loading…
Reference in New Issue
Block a user