1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/tools/misc/nix-build-uncached/default.nix

32 lines
809 B
Nix
Raw Normal View History

2020-05-11 04:35:07 +01:00
{ lib, buildGoModule, fetchFromGitHub, nix, makeWrapper }:
buildGoModule rec {
pname = "nix-build-uncached";
2020-07-24 06:29:10 +01:00
version = "1.0.0";
2020-05-11 04:35:07 +01:00
src = fetchFromGitHub {
owner = "Mic92";
repo = "nix-build-uncached";
rev = "v${version}";
2020-07-24 06:29:10 +01:00
sha256 = "106k4234gpi8mr0n0rfsgwk4z7v0b2gim0r5bhjvg2v566j67g02";
2020-05-11 04:35:07 +01:00
};
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;
};
}