74 lines
1.8 KiB
Nix
74 lines
1.8 KiB
Nix
|
|
{
|
||
|
|
lib,
|
||
|
|
rustPlatform,
|
||
|
|
fetchFromGitea,
|
||
|
|
makeWrapper,
|
||
|
|
pkg-config,
|
||
|
|
glib,
|
||
|
|
libopus,
|
||
|
|
vips,
|
||
|
|
ffmpeg,
|
||
|
|
callPackage,
|
||
|
|
testers,
|
||
|
|
faircamp,
|
||
|
|
}:
|
||
|
|
|
||
|
|
rustPlatform.buildRustPackage rec {
|
||
|
|
pname = "faircamp";
|
||
|
|
version = "1.6.0";
|
||
|
|
|
||
|
|
src = fetchFromGitea {
|
||
|
|
domain = "codeberg.org";
|
||
|
|
owner = "simonrepp";
|
||
|
|
repo = "faircamp";
|
||
|
|
rev = version;
|
||
|
|
hash = "sha256-J6OzbZbKT1ZnVG559JKLDh5R9xI3WUYx3pvvb15CAI8=";
|
||
|
|
};
|
||
|
|
|
||
|
|
cargoHash = "sha256-I5L+TKMKpUUvkh7tWw7hdCRK6CLj0PBzkfdJqPk3YJE=";
|
||
|
|
|
||
|
|
buildFeatures = [ "libvips" ];
|
||
|
|
|
||
|
|
nativeBuildInputs = [
|
||
|
|
makeWrapper
|
||
|
|
pkg-config
|
||
|
|
];
|
||
|
|
|
||
|
|
buildInputs = [
|
||
|
|
glib
|
||
|
|
libopus
|
||
|
|
vips
|
||
|
|
];
|
||
|
|
|
||
|
|
postInstall = ''
|
||
|
|
wrapProgram $out/bin/faircamp \
|
||
|
|
--prefix PATH : ${lib.makeBinPath [ ffmpeg ]}
|
||
|
|
'';
|
||
|
|
|
||
|
|
passthru.tests = {
|
||
|
|
wav = callPackage ./test-wav.nix { };
|
||
|
|
version = testers.testVersion { package = faircamp; };
|
||
|
|
};
|
||
|
|
|
||
|
|
meta = with lib; {
|
||
|
|
description = "Self-hostable, statically generated bandcamp alternative";
|
||
|
|
mainProgram = "faircamp";
|
||
|
|
longDescription = ''
|
||
|
|
Faircamp takes a directory on your disk - your Catalog - and from it
|
||
|
|
produces a fancy-looking (and technically simple and completely static)
|
||
|
|
website, which presents your music in a way similar to how popular
|
||
|
|
commercial service bandcamp does it.
|
||
|
|
|
||
|
|
You can upload the files faircamp generates to any webspace - no database
|
||
|
|
and no programming language support (PHP or such) is required. If your
|
||
|
|
webspace supports SSH access, faircamp can be configured to upload your
|
||
|
|
website for you automatically, otherwise you can use FTP or whichever
|
||
|
|
means you prefer to do that manually.
|
||
|
|
'';
|
||
|
|
homepage = "https://simonrepp.com/faircamp/";
|
||
|
|
license = licenses.gpl3Plus;
|
||
|
|
maintainers = with maintainers; [ fgaz ];
|
||
|
|
platforms = platforms.all;
|
||
|
|
};
|
||
|
|
}
|