Merge pull request #275535 from adam248/decent-sampler

decent-sampler: init at 1.9.4
This commit is contained in:
Janik 2023-12-22 23:42:15 +01:00 committed by GitHub
commit bb26cf8e50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 70 additions and 0 deletions

View File

@ -388,6 +388,12 @@
fingerprint = "CE85 54F7 B9BC AC0D D648 5661 AB5F C04C 3C94 443F";
}];
};
adam248 = {
email = "adamjbutler091@gmail.com";
github = "adam248";
githubId = 85082674;
name = "Adam J. Butler";
};
adamcstephens = {
email = "happy.plan4249@valkor.net";
matrix = "@adam:valkor.net";

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 ];
};
}