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
34
pkgs/development/tools/dep2nix/default.nix
Normal file
34
pkgs/development/tools/dep2nix/default.nix
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
{ lib, fetchFromGitHub, buildGoPackage
|
||||
, makeWrapper, nix-prefetch-scripts }:
|
||||
|
||||
buildGoPackage rec {
|
||||
pname = "dep2nix";
|
||||
version = "unstable-2019-04-02";
|
||||
|
||||
goPackagePath = "github.com/nixcloud/dep2nix";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "nixcloud";
|
||||
repo = pname;
|
||||
rev = "830684f920333b8ff0946d6b807e8be642eec3ef";
|
||||
sha256 = "17sjxhzhmz4893x3x054anp4xvqd1px15nv3fj2m7i6r0vbgpm0j";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
makeWrapper
|
||||
];
|
||||
|
||||
postFixup = ''
|
||||
wrapProgram $out/bin/dep2nix \
|
||||
--prefix PATH : ${nix-prefetch-scripts}/bin
|
||||
'';
|
||||
|
||||
goDeps = ./deps.nix;
|
||||
|
||||
meta = with lib; {
|
||||
description = "Convert `Gopkg.lock` files from golang dep into `deps.nix`";
|
||||
license = licenses.bsd3;
|
||||
homepage = "https://github.com/nixcloud/dep2nix";
|
||||
maintainers = [ maintainers.mic92 ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue