phylactery: use buildGoModule (#208980)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
parent
e0d9cff058
commit
1771b6692c
2 changed files with 14 additions and 7 deletions
|
@ -1,20 +1,24 @@
|
|||
{ lib, buildGoPackage, fetchFromSourcehut, nixosTests }:
|
||||
{ lib, buildGoModule, fetchFromSourcehut, nixosTests }:
|
||||
|
||||
buildGoPackage rec {
|
||||
buildGoModule rec {
|
||||
pname = "phylactery";
|
||||
version = "0.1.2";
|
||||
|
||||
goPackagePath = "git.sr.ht/~cnx/phylactery";
|
||||
|
||||
src = fetchFromSourcehut {
|
||||
owner = "~cnx";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "sha256-HQN6wJ/4YeuQaDcNgdHj0RgYnn2NxXGRfxybmv60EdQ=";
|
||||
hash = "sha256-HQN6wJ/4YeuQaDcNgdHj0RgYnn2NxXGRfxybmv60EdQ=";
|
||||
};
|
||||
|
||||
# Upstream repo doesn't provide any test.
|
||||
doCheck = false;
|
||||
vendorHash = "sha256-pQpattmS9VmO3ZIQUFn66az8GSmB4IvYhTTCFn6SUmo=";
|
||||
|
||||
preBuild = ''
|
||||
cp ${./go.mod} go.mod
|
||||
'';
|
||||
|
||||
ldflags = [ "-s" "-w" ];
|
||||
|
||||
passthru.tests.phylactery = nixosTests.phylactery;
|
||||
|
||||
meta = with lib; {
|
||||
|
|
3
pkgs/servers/web-apps/phylactery/go.mod
Normal file
3
pkgs/servers/web-apps/phylactery/go.mod
Normal file
|
@ -0,0 +1,3 @@
|
|||
module git.sr.ht/~cnx/phylactery
|
||||
|
||||
go 1.18
|
Loading…
Reference in a new issue