decent-sampler: init at 1.9.4

This commit is contained in:
Adam J. Butler 2023-12-21 12:15:42 +09:30
parent edbaa27655
commit a01c16d077

View file

@ -0,0 +1,64 @@
{ lib
, stdenv
, fetchzip
, buildFHSEnv
, alsa-lib
, freetype
, nghttp2
, libX11
, }:
let
pname = "decent-sampler";
version = "1.9.4";
decent-sampler = stdenv.mkDerivation {
inherit pname version;
src = fetchzip {
# dropbox link: https://www.dropbox.com/sh/dwyry6xpy5uut07/AABBJ84bjTTSQWzXGG5TOQpfa\
url = "https://archive.org/download/decent-sampler-linux-static-download-mirror/Decent_Sampler-${version}-Linux-Static-x86_64.tar.gz";
hash = "sha256-lTp/mukCwLNyeTcBT68eqa7aD0o11Bylbd93A5VCILU=";
};
installPhase = ''
runHook preInstall
install -Dm755 DecentSampler $out/bin/decent-sampler
runHook postInstall
'';
};
in
buildFHSEnv {
inherit pname version;
targetPkgs = pkgs: [
alsa-lib
decent-sampler
freetype
nghttp2
libX11
];
runScript = "decent-sampler";
meta = with lib; {
description = "An audio sample player";
longDescription = ''
Decent Sampler is an audio sample player.
Allowing you to play sample libraries in the DecentSampler format
(files with extensions: dspreset and dslibrary).
'';
mainProgram = "decent-sampler";
homepage = "https://www.decentsamples.com/product/decent-sampler-plugin/";
# It claims to be free but we currently cannot find any license
# that it is released under.
license = licenses.unfree;
platforms = [ "x86_64-linux" ];
maintainers = with maintainers; [ adam248 ];
};
}