uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
45
pkgs/development/tools/go2nix/default.nix
Normal file
45
pkgs/development/tools/go2nix/default.nix
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
{ lib, buildGoPackage, go-bindata, gotools, nix-prefetch-git, git, makeWrapper,
|
||||
fetchFromGitHub }:
|
||||
|
||||
buildGoPackage rec {
|
||||
pname = "go2nix";
|
||||
version = "1.3.0";
|
||||
rev = "v${version}";
|
||||
|
||||
goPackagePath = "github.com/kamilchm/go2nix";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
inherit rev;
|
||||
owner = "kamilchm";
|
||||
repo = "go2nix";
|
||||
sha256 = "1q61mgngvyl2bnmrqahh3bji402n76c7xwv29lwk007gymzgff0n";
|
||||
};
|
||||
|
||||
goDeps = ./deps.nix;
|
||||
|
||||
outputs = [ "out" "man" ];
|
||||
|
||||
nativeBuildInputs = [ go-bindata gotools makeWrapper ];
|
||||
|
||||
preBuild = "go generate ./...";
|
||||
|
||||
postInstall = ''
|
||||
wrapProgram $out/bin/go2nix \
|
||||
--prefix PATH : ${nix-prefetch-git}/bin \
|
||||
--prefix PATH : ${git}/bin
|
||||
|
||||
mkdir -p $man/share/man/man1
|
||||
cp $src/go2nix.1 $man/share/man/man1
|
||||
'';
|
||||
|
||||
allowGoReference = true;
|
||||
|
||||
doCheck = false; # tries to access the net
|
||||
|
||||
meta = with lib; {
|
||||
description = "Go apps packaging for Nix";
|
||||
homepage = "https://github.com/kamilchm/go2nix";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ kamilchm ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue