mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 17:03:01 +00:00
2641d97cbf
Reproduction script: # Bulk rewrite ./maintainers/scripts/sha-to-sri.py pkgs/by-name # Revert some packages which will need manual intervention for n in amdvlk azure-cli cargo-profiler corefonts flatito fluxcd gist perf_data_converter protoc-gen-js solana-cli swt verible; do git checkout -- "pkgs/by-name/${n:0:2}/${n}" done
34 lines
757 B
Nix
34 lines
757 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
buildGoModule {
|
|
pname = "vndr";
|
|
version = "0.1.2-unstable-2022-12-29";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "LK4D4";
|
|
repo = "vndr";
|
|
rev = "87603e47e8ea2ddac96f508fc9e9d6fc17b198b0";
|
|
hash = "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;
|
|
};
|
|
}
|