depot/pkgs/by-name/go/govers/package.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

38 lines
755 B
Nix

{
lib,
buildGoModule,
fetchFromGitHub,
}:
buildGoModule {
pname = "govers";
version = "0-unstable-2016-06-23";
src = fetchFromGitHub {
owner = "rogpeppe";
repo = "govers";
rev = "77fd787551fc5e7ae30696e009e334d52d2d3a43";
hash = "sha256-lpc8wFKAB+A8mBm9q3qNzTM8ktFS1MYdIvZVFP0eiIs=";
};
vendorHash = null;
postPatch = ''
go mod init github.com/rogpeppe/govers
'';
dontRenameImports = true;
doCheck = false; # fails, silently
meta = {
description = "Tool for rewriting Go import paths";
homepage = "https://github.com/rogpeppe/govers";
license = lib.licenses.bsd3;
mainProgram = "govers";
maintainers = with lib.maintainers; [
luftmensch-luftmensch
urandom
];
};
}