nix-build-uncached: remove the nix wrap (#96357)
Nix is one of those few things where it's actually better to use the version that is on the host. This avoids having to deal with Nix compatibility issues, and download a second version of Nix on hosts like GitHub Actions.
This commit is contained in:
parent
272c2201dc
commit
2f5277d92e
@ -1,4 +1,4 @@
|
|||||||
{ lib, buildGoModule, fetchFromGitHub, nix, makeWrapper }:
|
{ lib, buildGoModule, fetchFromGitHub, makeWrapper }:
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "nix-build-uncached";
|
pname = "nix-build-uncached";
|
||||||
@ -17,11 +17,6 @@ buildGoModule rec {
|
|||||||
|
|
||||||
nativeBuildInputs = [ makeWrapper ];
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
|
|
||||||
postInstall = ''
|
|
||||||
wrapProgram $out/bin/nix-build-uncached \
|
|
||||||
--prefix PATH ":" ${lib.makeBinPath [ nix ]}
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A CI friendly wrapper around nix-build";
|
description = "A CI friendly wrapper around nix-build";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user