Skip to content

Commit

Permalink
Merge pull request #87575 from colemickens/nbu
Browse files Browse the repository at this point in the history
nix-build-uncached: init at 0.1.1
  • Loading branch information
Mic92 committed May 18, 2020
2 parents 33b2ebb + 021662c commit 62e866e
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
31 changes: 31 additions & 0 deletions pkgs/development/tools/misc/nix-build-uncached/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{ 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;
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10676,6 +10676,8 @@ in
pythonPackages = python3Packages;
};

nix-build-uncached = callPackage ../development/tools/misc/nix-build-uncached { };

nexus = callPackage ../development/tools/repository-managers/nexus { };

nwjs = callPackage ../development/tools/nwjs {
Expand Down

0 comments on commit 62e866e

Please sign in to comment.