32 lines
809 B
Nix
32 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;
|
||
|
};
|
||
|
}
|