about summary refs log tree commit diff
path: root/pkgs/by-name/vn/vndr/package.nix
blob: 79cbc3e7e4e423bd9ef5e12c8655da36ae486695 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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;
  };
}