depot/third_party/nixpkgs/pkgs/development/tools/misc/nix-build-uncached/default.nix
Default email 4fc29cb41f Project import generated by Copybara.
GitOrigin-RevId: 135073a87b7e2c631739f4ffa016e1859b1a425e
2020-05-29 08:06:01 +02:00

31 lines
809 B
Nix

{ lib, buildGoModule, fetchFromGitHub, nix, makeWrapper }:
buildGoModule rec {
pname = "nix-build-uncached";
version = "0.1.1";
src = fetchFromGitHub {
owner = "Mic92";
repo = "nix-build-uncached";
rev = "v${version}";
sha256 = "0jkpg3ab56lg2kdms9w9ka9ba89py3ajksjsi1rd3iqi74zz2mmh";
};
goPackagePath = "github.com/Mic92/nix-build-uncached";
vendorSha256 = null;
nativeBuildInputs = [ makeWrapper ];
postInstall = ''
wrapProgram $out/bin/nix-build-uncached \
--prefix PATH ":" ${lib.makeBinPath [ nix ]}
'';
meta = with lib; {
description = "A CI friendly wrapper around nix-build";
license = licenses.mit;
homepage = "https://github.com/Mic92/nix-build-uncached";
maintainers = [ maintainers.mic92 ];
platforms = platforms.unix;
};
}