mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
filtron: converted to goPackage.
This commit is contained in:
parent
7e88b2bef5
commit
5ca573772c
@ -1,9 +1,11 @@
|
|||||||
{ lib, buildGoModule, fetchFromGitHub }:
|
{ lib, buildGoPackage, fetchFromGitHub }:
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoPackage rec {
|
||||||
pname = "filtron";
|
pname = "filtron";
|
||||||
version = "0.2.0";
|
version = "0.2.0";
|
||||||
|
|
||||||
|
goPackagePath = "github.com/asciimoo/filtron";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "asciimoo";
|
owner = "asciimoo";
|
||||||
repo = "filtron";
|
repo = "filtron";
|
||||||
@ -11,7 +13,7 @@ buildGoModule rec {
|
|||||||
sha256 = "18d3h0i2sfqbc0bjx26jm2n9f37zwp8z9z4wd17sw7nvkfa72a26";
|
sha256 = "18d3h0i2sfqbc0bjx26jm2n9f37zwp8z9z4wd17sw7nvkfa72a26";
|
||||||
};
|
};
|
||||||
|
|
||||||
vendorSha256 = null; #vendorSha256 = "";
|
goDeps = ./deps.nix;
|
||||||
|
|
||||||
# The upstream test checks are obsolete/unmaintained.
|
# The upstream test checks are obsolete/unmaintained.
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
@ -22,6 +24,5 @@ buildGoModule rec {
|
|||||||
license = licenses.agpl3;
|
license = licenses.agpl3;
|
||||||
maintainers = [ maintainers.dasj19 ];
|
maintainers = [ maintainers.dasj19 ];
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
broken = true; # vendor isn't reproducible with go > 1.17: nix-build -A $name.go-modules --check
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
41
pkgs/servers/filtron/deps.nix
generated
Normal file
41
pkgs/servers/filtron/deps.nix
generated
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
goPackagePath = "github.com/valyala/fasthttp";
|
||||||
|
fetch = {
|
||||||
|
type = "git";
|
||||||
|
url = "https://github.com/valyala/fasthttp";
|
||||||
|
rev = "v1.41.0";
|
||||||
|
sha256 = "sha256-lV9FP7GjnQk/kJACE9l5CZ/8kzORdNpYS5lPokEYrZM=";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
goPackagePath = "github.com/klauspost/compress";
|
||||||
|
fetch = {
|
||||||
|
type = "git";
|
||||||
|
url = "https://github.com/klauspost/compress";
|
||||||
|
rev = "v1.15.12";
|
||||||
|
sha256 = "sha256-D41sCSbaqX9tXIRcTU9TYyjPyZpuKLDeQMXETE2ulbM=";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
goPackagePath = "github.com/valyala/bytebufferpool";
|
||||||
|
fetch = {
|
||||||
|
type = "git";
|
||||||
|
url = "https://github.com/valyala/bytebufferpool";
|
||||||
|
rev = "v1.0.0";
|
||||||
|
sha256 = "sha256-I9FPZ3kCNRB+o0dpMwBnwZ35Fj9+ThvITn8a3Jr8mAY=";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
goPackagePath = "github.com/andybalholm/brotli";
|
||||||
|
fetch = {
|
||||||
|
type = "git";
|
||||||
|
url = "https://github.com/andybalholm/brotli";
|
||||||
|
rev = "v1.0.4";
|
||||||
|
sha256 = "sha256-gAnPRdGP4yna4hiRIEDyBtDOVJqd7RU27wlPu96Rdf8=";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
]
|
Loading…
Reference in New Issue
Block a user