mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 01:13:05 +00:00
govers: migrate to buildGoModule
This commit is contained in:
parent
224c195208
commit
66ec7f718a
38
pkgs/by-name/go/govers/package.nix
Normal file
38
pkgs/by-name/go/govers/package.nix
Normal file
@ -0,0 +1,38 @@
|
||||
{
|
||||
lib,
|
||||
buildGoModule,
|
||||
fetchFromGitHub,
|
||||
}:
|
||||
|
||||
buildGoModule {
|
||||
pname = "govers";
|
||||
version = "0-unstable-2016-06-23";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "rogpeppe";
|
||||
repo = "govers";
|
||||
rev = "77fd787551fc5e7ae30696e009e334d52d2d3a43";
|
||||
sha256 = "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
|
||||
];
|
||||
};
|
||||
}
|
@ -1,21 +0,0 @@
|
||||
{ lib, buildGoPackage, fetchFromGitHub }:
|
||||
|
||||
buildGoPackage rec {
|
||||
pname = "govers";
|
||||
version = "unstable-2016-06-23";
|
||||
|
||||
goPackagePath = "github.com/rogpeppe/govers";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "rogpeppe";
|
||||
repo = "govers";
|
||||
rev = "77fd787551fc5e7ae30696e009e334d52d2d3a43";
|
||||
sha256 = "sha256-lpc8wFKAB+A8mBm9q3qNzTM8ktFS1MYdIvZVFP0eiIs=";
|
||||
};
|
||||
|
||||
dontRenameImports = true;
|
||||
|
||||
doCheck = false; # fails, silently
|
||||
|
||||
meta.mainProgram = "govers";
|
||||
}
|
@ -27563,8 +27563,6 @@ with pkgs;
|
||||
|
||||
gotraceui = callPackage ../development/tools/gotraceui { };
|
||||
|
||||
govers = callPackage ../development/tools/govers { };
|
||||
|
||||
goverview = callPackage ../tools/security/goverview { };
|
||||
|
||||
go-tools = callPackage ../development/tools/go-tools {
|
||||
|
Loading…
Reference in New Issue
Block a user