verifpal: 0.7.5 -> 0.13.7

Switch from buildGoPackage to buildGoModule.
This commit is contained in:
Martin Milata 2020-06-02 01:13:56 +02:00
parent 4a4adb2733
commit 108273bc1b
2 changed files with 12 additions and 30 deletions

View File

@ -1,35 +1,29 @@
{ lib
, fetchgit
, buildGoPackage
, buildGoModule
, pigeon
}:
buildGoPackage rec {
buildGoModule rec {
pname = "verifpal";
version = "0.7.5";
goPackagePath = "github.com/SymbolicSoft/verifpal";
goDeps = ./deps.nix;
version = "0.13.7";
src = fetchgit {
url = "https://source.symbolic.software/verifpal/verifpal.git";
rev = version;
sha256 = "0njgn6j5qg5kgid6ddv23axhw5gwjbayhdjkj4ya08mnxndr284m";
rev = "v${version}";
sha256 = "1ia3mxwcvcxghga2vvhf6mia59cm3jl7vh8laywh421bfj42sh9d";
};
vendorSha256 = "0cmj6h103igg5pcs9c9wrcmrsf0mwp9vbgzf5amsnj1206ryb1p2";
nativeBuildInputs = [ pigeon ];
postPatch = ''
sed -e 's|/bin/echo |echo |g' -i Makefile
'';
subPackages = [ "cmd/verifpal" ];
buildPhase = ''
make -C go/src/$goPackagePath parser linux
'';
installPhase = ''
mkdir -p $out/bin
cp go/src/$goPackagePath/build/bin/linux/verifpal $out/bin/
# goversioninfo is for Windows only and can be skipped during go generate
preBuild = ''
substituteInPlace cmd/verifpal/main.go --replace "go:generate goversioninfo" "(disabled goversioninfo)"
go generate verifpal.com/cmd/verifpal
'';
meta = {

View File

@ -1,12 +0,0 @@
# file generated from go.mod using vgo2nix (https://github.com/adisbladis/vgo2nix)
[
{
goPackagePath = "github.com/logrusorgru/aurora";
fetch = {
type = "git";
url = "https://github.com/logrusorgru/aurora";
rev = "94edacc10f9b";
sha256 = "0bhwy3rrd8mwb8xjwf44nj6vmxaj5hdvayvszr1rskkmz08l5v01";
};
}
]