Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vndr: migrate to buildGoModule #318798

Merged
merged 1 commit into from
Jun 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions pkgs/by-name/vn/vndr/package.nix
Original file line number Diff line number Diff line change
@@ -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;
};
}
25 changes: 0 additions & 25 deletions pkgs/development/tools/vndr/default.nix

This file was deleted.

2 changes: 0 additions & 2 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 {};
Expand Down