mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 02:42:59 +00:00
bf995e3641
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*".*\.";' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*)\.";/\1";/'
34 lines
774 B
Nix
34 lines
774 B
Nix
{ buildGoModule
|
|
, fetchFromGitHub
|
|
, go-rice
|
|
, lib
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "linx-server";
|
|
version = "unstable-2021-12-24";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "zizzydizzymc";
|
|
repo = pname;
|
|
rev = "3f503442f10fca68a3212975b23cf74d92c9988c";
|
|
hash = "sha256-tTHw/rIb2Gs5i5vZKsSgbUePIY7Np6HofBXu4TTjKbw=";
|
|
};
|
|
|
|
# upstream tests are broken, see zizzydizzymc/linx-server#34
|
|
patches = [ ./test.patch ];
|
|
|
|
vendorHash = "sha256-/N3AXrPyENp3li4X86LNXsfBYbjJulk+0EAyogPNIpc=";
|
|
|
|
nativeBuildInputs = [ go-rice ];
|
|
|
|
preBuild = "rice embed-go";
|
|
|
|
meta = with lib; {
|
|
description = "Self-hosted file/code/media sharing website";
|
|
homepage = "https://put.icu";
|
|
license = licenses.gpl3Only;
|
|
maintainers = with maintainers; [ urandom ];
|
|
};
|
|
}
|