1 { lib, buildGoModule, fetchFromGitHub, makeWrapper, runCommand, nixosTests }:
6 src = fetchFromGitHub {
10 hash = "sha256-WCtfkzlZnyzZDwNDBrW06bUbLYTL2C704Y7aXbiVi5c=";
16 homepage = "https://plik.root.gg/";
17 description = "Scalable & friendly temporary file upload system";
18 maintainers = with maintainers; [ freezeboy ];
19 license = licenses.mit;
24 substituteInPlace server/common/version.go \
25 --replace '"0.0.0"' '"${version}"'
29 inherit (nixosTests) plikd;
35 plik = buildGoModule {
37 inherit version meta src vendorHash postPatch passthru;
39 subPackages = [ "client" ];
41 mv $out/bin/client $out/bin/plik
45 plikd-unwrapped = buildGoModule {
46 pname = "plikd-unwrapped";
47 inherit version src vendorHash postPatch passthru;
49 subPackages = [ "server" ];
51 mv $out/bin/server $out/bin/plikd