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
29
pkgs/development/tools/go-swagger/default.nix
Normal file
29
pkgs/development/tools/go-swagger/default.nix
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
{ buildGoModule, fetchFromGitHub, lib }:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "go-swagger";
|
||||
version = "0.29.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "go-swagger";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-sahInHXv1GtylsY8kpw1dDjKiENmq4myx+7mq60vJAI=";
|
||||
};
|
||||
|
||||
vendorSha256 = "sha256-KLV6ABo1K+KtAzAQ4FcFiK1LAZEsKup+BtgjRJfonAY=";
|
||||
|
||||
doCheck = false;
|
||||
|
||||
subPackages = [ "cmd/swagger" ];
|
||||
|
||||
ldflags = [ "-s" "-w" "-X github.com/go-swagger/go-swagger/cmd/swagger/commands.Version=${version}" "-X github.com/go-swagger/go-swagger/cmd/swagger/commands.Commit=${src.rev}" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Golang implementation of Swagger 2.0, representation of your RESTful API";
|
||||
homepage = "https://github.com/go-swagger/go-swagger";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ kalbasit ];
|
||||
mainProgram = "swagger";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue