54 lines
1.2 KiB
Nix
54 lines
1.2 KiB
Nix
|
{ stdenv, lib
|
||
|
, fetchurl
|
||
|
, autoPatchelfHook
|
||
|
, alsaLib
|
||
|
, freetype
|
||
|
, glibc
|
||
|
, requireFile
|
||
|
}:
|
||
|
|
||
|
stdenv.mkDerivation rec {
|
||
|
name = "decentsampler-${version}";
|
||
|
|
||
|
version = "1.1.1";
|
||
|
|
||
|
src = requireFile rec {
|
||
|
name = "Decent_Sampler-${version}-Linux-x86_64.tar.gz";
|
||
|
sha256 = "0l1msk6d9x74scq82yv4nj282aw57mgzv2wj4kknzh08xnj5a1gh";
|
||
|
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 = ''
|
||
|
ls -la
|
||
|
mkdir -p $out/lib/vst2 $out/lib/vst3
|
||
|
install -m755 -D Decent_Sampler-${version}-Linux-x86_64/DecentSampler.so \
|
||
|
$out/lib/vst2/
|
||
|
install -m755 -D Decent_Sampler-${version}-Linux-x86_64/DecentSampler.vst3/Contents/x86_64-linux/DecentSampler.so \
|
||
|
$out/lib/vst3/
|
||
|
'';
|
||
|
|
||
|
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;
|
||
|
};
|
||
|
}
|