mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 03:30:45 +00:00
vndr: migrate to buildGoModule
This commit is contained in:
parent
38dc5f0137
commit
6312c83e4a
33
pkgs/by-name/vn/vndr/package.nix
Normal file
33
pkgs/by-name/vn/vndr/package.nix
Normal file
|
@ -0,0 +1,33 @@
|
|||
{ lib
|
||||
, buildGoModule
|
||||
, fetchFromGitHub
|
||||
}:
|
||||
|
||||
buildGoModule {
|
||||
pname = "vndr";
|
||||
version = "0.1.2-unstable-2022-12-29";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "LK4D4";
|
||||
repo = "vndr";
|
||||
rev = "87603e47e8ea2ddac96f508fc9e9d6fc17b198b0";
|
||||
sha256 = "sha256-L7OemAPCv7epOVmjrDDtiGqQqzscm5zj3C6dsZP4uUc=";
|
||||
};
|
||||
|
||||
vendorHash = null;
|
||||
|
||||
postPatch = ''
|
||||
go mod init github.com/LK4D4/vndr
|
||||
'';
|
||||
|
||||
# Tests rely on the 'vndr' binary being in the PATH already.
|
||||
doCheck = false;
|
||||
|
||||
meta = {
|
||||
description = "Stupid golang vendoring tool, inspired by docker vendor script";
|
||||
mainProgram = "vndr";
|
||||
homepage = "https://github.com/LK4D4/vndr";
|
||||
maintainers = with lib.maintainers; [ vdemeester rvolosatovs ];
|
||||
license = lib.licenses.asl20;
|
||||
};
|
||||
}
|
|
@ -1,25 +0,0 @@
|
|||
{ lib, buildGoPackage, fetchFromGitHub }:
|
||||
|
||||
buildGoPackage rec {
|
||||
pname = "vndr-unstable";
|
||||
version = "2020-07-28";
|
||||
rev = "f12b881cb8f081a5058408a58f429b9014833fc6";
|
||||
|
||||
goPackagePath = "github.com/LK4D4/vndr";
|
||||
excludedPackages = "test";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
inherit rev;
|
||||
owner = "LK4D4";
|
||||
repo = "vndr";
|
||||
sha256 = "04za4x8p8qzwjlp4i0j0gsb4xx0x9f4yp3ab0b97r50pah1ac2g3";
|
||||
};
|
||||
|
||||
meta = {
|
||||
description = "Stupid golang vendoring tool, inspired by docker vendor script";
|
||||
mainProgram = "vndr";
|
||||
homepage = "https://github.com/LK4D4/vndr";
|
||||
maintainers = with lib.maintainers; [ vdemeester rvolosatovs ];
|
||||
license = lib.licenses.asl20;
|
||||
};
|
||||
}
|
|
@ -28095,8 +28095,6 @@ with pkgs;
|
|||
|
||||
vendir = callPackage ../development/tools/vendir { };
|
||||
|
||||
vndr = callPackage ../development/tools/vndr { };
|
||||
|
||||
vdo = callPackage ../os-specific/linux/vdo { };
|
||||
|
||||
windows = callPackages ../os-specific/windows {};
|
||||
|
|
Loading…
Reference in a new issue