2f5277d92e
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.
28 lines
644 B
Nix
28 lines
644 B
Nix
{ lib, buildGoModule, fetchFromGitHub, makeWrapper }:
|
|
|
|
buildGoModule rec {
|
|
pname = "nix-build-uncached";
|
|
version = "1.0.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Mic92";
|
|
repo = "nix-build-uncached";
|
|
rev = "v${version}";
|
|
sha256 = "106k4234gpi8mr0n0rfsgwk4z7v0b2gim0r5bhjvg2v566j67g02";
|
|
};
|
|
|
|
vendorSha256 = null;
|
|
|
|
doCheck = false;
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
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;
|
|
};
|
|
}
|