2021-07-29 22:59:09 +02:00
|
|
|
{ stdenv, lib
|
|
|
|
, fetchurl
|
|
|
|
, autoPatchelfHook
|
|
|
|
, alsaLib
|
|
|
|
, freetype
|
|
|
|
, glibc
|
|
|
|
, requireFile
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "decentsampler-${version}";
|
|
|
|
|
2021-10-08 08:17:05 +02:00
|
|
|
version = "1.2.7";
|
2021-07-29 22:59:09 +02:00
|
|
|
|
|
|
|
src = requireFile rec {
|
|
|
|
name = "Decent_Sampler-${version}-Linux-x86_64.tar.gz";
|
2021-10-08 08:17:05 +02:00
|
|
|
sha256 = "0wzz69xbqcp06bggpd7g21c2lzbm3ankflcxbqpb8qp3k3z5cx2m";
|
2021-07-29 22:59:09 +02:00
|
|
|
message = ''
|
|
|
|
Get ${name}, (linux version) from
|
|
|
|
https://www.decentsamples.com/product/decent-sampler-plugin/
|
|
|
|
|
|
|
|
And import it using:
|
|
|
|
nix-prefetch-url file://<path/to>/${name}
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
autoPatchelfHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
alsaLib
|
|
|
|
freetype
|
|
|
|
glibc
|
|
|
|
];
|
|
|
|
|
|
|
|
sourceRoot = ".";
|
|
|
|
|
|
|
|
installPhase = ''
|
2021-07-29 23:10:31 +02:00
|
|
|
mkdir -p $out/lib/vst $out/lib/vst3
|
2021-07-29 22:59:09 +02:00
|
|
|
install -m755 -D Decent_Sampler-${version}-Linux-x86_64/DecentSampler.so \
|
2021-07-29 23:10:31 +02:00
|
|
|
$out/lib/vst/
|
2021-07-29 23:17:04 +02:00
|
|
|
cp -r Decent_Sampler-${version}-Linux-x86_64/DecentSampler.vst3 $out/lib/vst3/
|
|
|
|
chmod -R 0755 $out
|
2021-07-29 22:59:09 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://www.decentsamples.com/product/decent-sampler-plugin/";
|
|
|
|
description = "A FREE sampling plugin that allows you to play samples in the Decent Sampler format";
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|