pict-rs_0_3: init at 0.3.3
We need to package this older version of pict-rs so NixOS with older stateVersion can still use it.
This commit is contained in:
parent
497d9b829a
commit
fceac044f8
53
pkgs/servers/web-apps/pict-rs/0.3.nix
Normal file
53
pkgs/servers/web-apps/pict-rs/0.3.nix
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
{ stdenv
|
||||||
|
, lib
|
||||||
|
, fetchFromGitea
|
||||||
|
, rustPlatform
|
||||||
|
, makeWrapper
|
||||||
|
, protobuf
|
||||||
|
, Security
|
||||||
|
, imagemagick
|
||||||
|
, ffmpeg
|
||||||
|
, exiftool
|
||||||
|
, nixosTests
|
||||||
|
}:
|
||||||
|
|
||||||
|
rustPlatform.buildRustPackage rec {
|
||||||
|
pname = "pict-rs";
|
||||||
|
version = "0.3.3";
|
||||||
|
|
||||||
|
src = fetchFromGitea {
|
||||||
|
domain = "git.asonix.dog";
|
||||||
|
owner = "asonix";
|
||||||
|
repo = pname;
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "mEZBFDR+/aMRFw54Yq+f1gyEz8H+5IggNCpzv3UdDFg=";
|
||||||
|
};
|
||||||
|
|
||||||
|
cargoLock = {
|
||||||
|
lockFile = ./Cargo-0.3.lock;
|
||||||
|
outputHashes = {
|
||||||
|
"aws-creds-0.29.1" = "bwDFmDPThMLrpaB7cAj/2/vJKhbX6/DqgcIRBVKSZhg=";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
# needed for internal protobuf c wrapper library
|
||||||
|
PROTOC = "${protobuf}/bin/protoc";
|
||||||
|
PROTOC_INCLUDE = "${protobuf}/include";
|
||||||
|
|
||||||
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
|
buildInputs = lib.optionals stdenv.isDarwin [ Security ];
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
wrapProgram "$out/bin/pict-rs" \
|
||||||
|
--prefix PATH : "${lib.makeBinPath [ imagemagick ffmpeg exiftool ]}"
|
||||||
|
'';
|
||||||
|
|
||||||
|
passthru.tests = { inherit (nixosTests) pict-rs; };
|
||||||
|
|
||||||
|
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 ];
|
||||||
|
};
|
||||||
|
}
|
3105
pkgs/servers/web-apps/pict-rs/Cargo-0.3.lock
Normal file
3105
pkgs/servers/web-apps/pict-rs/Cargo-0.3.lock
Normal file
File diff suppressed because it is too large
Load Diff
@ -26319,6 +26319,11 @@ with pkgs;
|
|||||||
ffmpeg = ffmpeg_4;
|
ffmpeg = ffmpeg_4;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pict-rs_0_3 = callPackage ../servers/web-apps/pict-rs/0.3.nix {
|
||||||
|
inherit (darwin.apple_sdk.frameworks) Security;
|
||||||
|
ffmpeg = ffmpeg_4;
|
||||||
|
};
|
||||||
|
|
||||||
popa3d = callPackage ../servers/mail/popa3d { };
|
popa3d = callPackage ../servers/mail/popa3d { };
|
||||||
|
|
||||||
postfix = callPackage ../servers/mail/postfix { };
|
postfix = callPackage ../servers/mail/postfix { };
|
||||||
|
Loading…
Reference in New Issue
Block a user