diff options
Diffstat (limited to 'pkgs/servers/web-apps/pict-rs/default.nix')
-rw-r--r-- | pkgs/servers/web-apps/pict-rs/default.nix | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/pkgs/servers/web-apps/pict-rs/default.nix b/pkgs/servers/web-apps/pict-rs/default.nix deleted file mode 100644 index 6033db65bf30..000000000000 --- a/pkgs/servers/web-apps/pict-rs/default.nix +++ /dev/null @@ -1,50 +0,0 @@ -{ stdenv -, lib -, fetchFromGitea -, rustPlatform -, makeWrapper -, protobuf -, darwin -, imagemagick -, ffmpeg -, exiftool -, nixosTests -}: - -rustPlatform.buildRustPackage rec { - pname = "pict-rs"; - version = "0.5.16"; - - src = fetchFromGitea { - domain = "git.asonix.dog"; - owner = "asonix"; - repo = pname; - rev = "v${version}"; - sha256 = "sha256-q0h+H3260CSpZemVuyaiwSHDi8yKXUX8Df9ih3IzAWo="; - }; - - cargoHash = "sha256-lMnJyiKhO7fGrjHkyZjheN0w7GgVs7Jnszw1KXo7vTg="; - - # needed for internal protobuf c wrapper library - PROTOC = "${protobuf}/bin/protoc"; - PROTOC_INCLUDE = "${protobuf}/include"; - - nativeBuildInputs = [ makeWrapper ]; - buildInputs = lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.Security; - - postInstall = '' - wrapProgram "$out/bin/pict-rs" \ - --prefix PATH : "${lib.makeBinPath [ imagemagick ffmpeg exiftool ]}" - ''; - - passthru.tests = { inherit (nixosTests) pict-rs; }; - - meta = with lib; { - broken = stdenv.isDarwin; - description = "Simple image hosting service"; - mainProgram = "pict-rs"; - homepage = "https://git.asonix.dog/asonix/pict-rs"; - license = with licenses; [ agpl3Plus ]; - maintainers = with maintainers; [ happysalada ]; - }; -} |