mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-15 00:52:07 +03:00
Merge pull request #327979 from McSinyx/phylactery-0.2
phylactery: 0.1.2 -> 0.2.0
This commit is contained in:
commit
022bae040e
@ -1,22 +1,16 @@
|
||||
{ lib, buildGoModule, fetchFromSourcehut, nixosTests }:
|
||||
{ lib, buildGoModule, fetchzip, nixosTests }:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "phylactery";
|
||||
version = "0.1.2";
|
||||
version = "0.2.0";
|
||||
|
||||
src = fetchFromSourcehut {
|
||||
owner = "~cnx";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
hash = "sha256-HQN6wJ/4YeuQaDcNgdHj0RgYnn2NxXGRfxybmv60EdQ=";
|
||||
src = fetchzip {
|
||||
url = "https://trong.loang.net/phylactery/snapshot/phylactery-${version}.tar.gz";
|
||||
hash = "sha256-UokK6rVjpzbcKOkZteo5kU7rFMm1meBUM4bkYAYM8rI=";
|
||||
};
|
||||
|
||||
vendorHash = null;
|
||||
|
||||
preBuild = ''
|
||||
cp ${./go.mod} go.mod
|
||||
'';
|
||||
|
||||
ldflags = [ "-s" "-w" ];
|
||||
|
||||
passthru.tests.phylactery = nixosTests.phylactery;
|
||||
@ -24,7 +18,7 @@ buildGoModule rec {
|
||||
meta = with lib; {
|
||||
description = "Old school comic web server";
|
||||
mainProgram = "phylactery";
|
||||
homepage = "https://git.sr.ht/~cnx/phylactery";
|
||||
homepage = "https://trong.loang.net/phylactery/about";
|
||||
license = licenses.agpl3Plus;
|
||||
maintainers = with maintainers; [ McSinyx ];
|
||||
platforms = platforms.all;
|
||||
|
@ -1,3 +0,0 @@
|
||||
module git.sr.ht/~cnx/phylactery
|
||||
|
||||
go 1.18
|
Loading…
Reference in New Issue
Block a user