Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{
2 lib,
3 buildGoModule,
4 fetchFromGitHub,
5}:
6
7buildGoModule {
8 pname = "govers";
9 version = "0-unstable-2016-06-23";
10
11 src = fetchFromGitHub {
12 owner = "rogpeppe";
13 repo = "govers";
14 rev = "77fd787551fc5e7ae30696e009e334d52d2d3a43";
15 hash = "sha256-lpc8wFKAB+A8mBm9q3qNzTM8ktFS1MYdIvZVFP0eiIs=";
16 };
17
18 vendorHash = null;
19
20 postPatch = ''
21 go mod init github.com/rogpeppe/govers
22 '';
23
24 dontRenameImports = true;
25
26 doCheck = false; # fails, silently
27
28 meta = {
29 description = "Tool for rewriting Go import paths";
30 homepage = "https://github.com/rogpeppe/govers";
31 license = lib.licenses.bsd3;
32 mainProgram = "govers";
33 maintainers = with lib.maintainers; [
34 luftmensch-luftmensch
35 urandom
36 ];
37 };
38}