pict-rs: init at 0.3.0-alpha.37
This commit is contained in:
parent
9ed8b85e79
commit
84587ecefa
2 changed files with 49 additions and 0 deletions
44
pkgs/servers/web-apps/pict-rs/default.nix
Normal file
44
pkgs/servers/web-apps/pict-rs/default.nix
Normal file
|
@ -0,0 +1,44 @@
|
|||
{ stdenv
|
||||
, lib
|
||||
, fetchFromGitea
|
||||
, rustPlatform
|
||||
, makeWrapper
|
||||
, protobuf
|
||||
, Security
|
||||
, imagemagick
|
||||
, ffmpeg
|
||||
, exiftool
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "pict-rs";
|
||||
version = "0.3.0-alpha.37";
|
||||
|
||||
src = fetchFromGitea {
|
||||
domain = "git.asonix.dog";
|
||||
owner = "asonix";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-21yfsCicn2bjSNEMMWDG8wvnw10uT3M1L3cXCUhc24c=";
|
||||
};
|
||||
|
||||
cargoSha256 = "sha256-F/mqdIjF5QOq5Plnq0DyeFP1+b7dCBcoU9iFxzcaZws=";
|
||||
|
||||
# needed for internal protobuf c wrapper library
|
||||
PROTOC = "${protobuf}/bin/protoc";
|
||||
PROTOC_INCLUDE = "${protobuf}/include";
|
||||
|
||||
buildInputs = [ makeWrapper ] ++ lib.optionals stdenv.isDarwin [ Security ];
|
||||
|
||||
postInstall = ''
|
||||
wrapProgram "$out/bin/pict-rs" \
|
||||
--prefix PATH : "${lib.makeBinPath [ imagemagick ffmpeg exiftool ]}"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "a simple image hosting service";
|
||||
homepage = "https://git.asonix.dog/asonix/pict-rs";
|
||||
license = with licenses; [ agpl3Plus ];
|
||||
maintainers = with maintainers; [ happysalada ];
|
||||
};
|
||||
}
|
|
@ -20445,6 +20445,11 @@ with pkgs;
|
|||
|
||||
petidomo = callPackage ../servers/mail/petidomo { };
|
||||
|
||||
pict-rs = callPackage ../servers/web-apps/pict-rs {
|
||||
inherit (darwin.apple_sdk.frameworks) Security;
|
||||
ffmpeg = ffmpeg_4;
|
||||
};
|
||||
|
||||
popa3d = callPackage ../servers/mail/popa3d { };
|
||||
|
||||
postfix = callPackage ../servers/mail/postfix { };
|
||||
|
|
Loading…
Reference in a new issue