2023-03-04 12:14:45 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, buildGoModule
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
2023-03-15 16:39:30 +00:00
|
|
|
pname = "gossa";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "1.0.0";
|
2023-03-04 12:14:45 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pldubouilh";
|
|
|
|
repo = "gossa";
|
|
|
|
rev = "v${version}";
|
|
|
|
fetchSubmodules = true;
|
2023-07-15 17:15:38 +00:00
|
|
|
hash = "sha256-vonhVxXbYI/5Gl9ZwI8+a3YXSjoqLVic1twykiy+e34=";
|
2023-03-04 12:14:45 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
vendorHash = null;
|
|
|
|
|
|
|
|
ldflags = [ "-s" "-w" ];
|
|
|
|
|
|
|
|
# Tests require a socket connection to be created.
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/pldubouilh/gossa";
|
|
|
|
description = "A fast and simple multimedia fileserver";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ dsymbol ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "gossa";
|
2023-03-04 12:14:45 +00:00
|
|
|
};
|
|
|
|
}
|