faircamp: unstable-2023-04-10 -> 0.8.0

This commit is contained in:
Francesco Gazzetta 2023-10-25 11:13:21 +02:00
parent 7cb9338b8f
commit 04a87a5599
2 changed files with 675 additions and 448 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,7 +1,7 @@
{ lib
, stdenv
, rustPlatform
, fetchgit
, fetchFromGitea
, makeWrapper
, pkg-config
, glib
@ -9,29 +9,32 @@
, vips
, ffmpeg
, callPackage
, unstableGitUpdater
, darwin
, testers
, faircamp
}:
rustPlatform.buildRustPackage {
rustPlatform.buildRustPackage rec {
pname = "faircamp";
version = "unstable-2023-04-10";
version = "0.8.0";
# TODO when switching to a stable release, use fetchFromGitea and add a
# version test. Meanwhile, fetchgit is used to make unstableGitUpdater work.
src = fetchgit {
url = "https://codeberg.org/simonrepp/faircamp.git";
rev = "21f775dc35a88c54015694f9757e81c97fa860ea";
hash = "sha256-aMSMMIGfoiqtg8Dj8QiCbUE40OKQXMXt4hvlvbXQLls=";
src = fetchFromGitea {
domain = "codeberg.org";
owner = "simonrepp";
repo = "faircamp";
rev = version;
hash = "sha256-Rz/wMlVNjaGhk26QMnS4+W3oA/RSdB6FuigC84L8eDg=";
};
cargoLock = {
lockFile = ./Cargo.lock;
outputHashes = {
"enolib-0.1.0" = "sha256-0+T8RRQnqbIiIup/aDJgvxeV8sRV4YrlA9JVbQxMfF0=";
"enolib-0.2.1" = "sha256-ryB5Tk90BvsstdXgYw7F0BJymWWetAIijhVpLeVBOa8=";
};
};
buildFeatures = [ "libvips" ];
nativeBuildInputs = [
makeWrapper
pkg-config
@ -50,9 +53,10 @@ rustPlatform.buildRustPackage {
--prefix PATH : ${lib.makeBinPath [ ffmpeg ]}
'';
passthru.tests.wav = callPackage ./test-wav.nix { };
passthru.updateScript = unstableGitUpdater { };
passthru.tests = {
wav = callPackage ./test-wav.nix { };
version = testers.testVersion { package = faircamp; };
};
meta = with lib; {
description = "A self-hostable, statically generated bandcamp alternative";