Merge pull request #291377 from chewblacka/update-decent-sampler
decent-sampler: 1.9.4 -> 1.10.0
This commit is contained in:
commit
f945939fd6
1 changed files with 34 additions and 5 deletions
|
@ -1,6 +1,9 @@
|
||||||
{ lib
|
{ lib
|
||||||
, stdenv
|
, stdenv
|
||||||
, fetchzip
|
, fetchzip
|
||||||
|
, fetchurl
|
||||||
|
, makeDesktopItem
|
||||||
|
, copyDesktopItems
|
||||||
, buildFHSEnv
|
, buildFHSEnv
|
||||||
, alsa-lib
|
, alsa-lib
|
||||||
, freetype
|
, freetype
|
||||||
|
@ -10,22 +13,43 @@
|
||||||
|
|
||||||
let
|
let
|
||||||
pname = "decent-sampler";
|
pname = "decent-sampler";
|
||||||
version = "1.9.4";
|
version = "1.10.0";
|
||||||
|
|
||||||
|
icon = fetchurl {
|
||||||
|
url = "https://archive.org/download/ds-256/DS256.png";
|
||||||
|
hash = "sha256-SV8zY5QJ6uRSrLuGTmT1zwGoIIXCV9GD2ZNiqK+i1Bc=";
|
||||||
|
};
|
||||||
|
|
||||||
decent-sampler = stdenv.mkDerivation {
|
decent-sampler = stdenv.mkDerivation {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
|
|
||||||
src = fetchzip {
|
src = fetchzip {
|
||||||
# dropbox link: https://www.dropbox.com/sh/dwyry6xpy5uut07/AABBJ84bjTTSQWzXGG5TOQpfa\
|
# dropbox links: 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";
|
url = "https://archive.org/download/decent-sampler-linux-static-download-mirror/Decent_Sampler-${version}-Linux-Static-x86_64.tar.gz";
|
||||||
hash = "sha256-lTp/mukCwLNyeTcBT68eqa7aD0o11Bylbd93A5VCILU=";
|
hash = "sha256-KYCf/F2/ziuXDHim4FPZQBARiSywvQDJBzKbHua+3SM=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ copyDesktopItems ];
|
||||||
|
|
||||||
|
desktopItems = [
|
||||||
|
(makeDesktopItem {
|
||||||
|
type = "Application";
|
||||||
|
name = "decent-sampler";
|
||||||
|
desktopName = "Decent Sampler";
|
||||||
|
comment = "DecentSampler player";
|
||||||
|
icon = "decent-sampler";
|
||||||
|
exec = "decent-sampler";
|
||||||
|
categories = [ "Audio" "AudioVideo" ];
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
runHook preInstall
|
runHook preInstall
|
||||||
|
|
||||||
install -Dm755 DecentSampler $out/bin/decent-sampler
|
install -Dm755 DecentSampler $out/bin/decent-sampler
|
||||||
|
install -Dm755 DecentSampler.so -t $out/lib/vst
|
||||||
|
install -d "$out/lib/vst3" && cp -r "DecentSampler.vst3" $out/lib/vst3
|
||||||
|
install -Dm444 ${icon} $out/share/pixmaps/decent-sampler.png
|
||||||
|
|
||||||
runHook postInstall
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
@ -34,7 +58,7 @@ let
|
||||||
in
|
in
|
||||||
|
|
||||||
buildFHSEnv {
|
buildFHSEnv {
|
||||||
inherit pname version;
|
inherit (decent-sampler) pname version;
|
||||||
|
|
||||||
targetPkgs = pkgs: [
|
targetPkgs = pkgs: [
|
||||||
alsa-lib
|
alsa-lib
|
||||||
|
@ -46,6 +70,11 @@ buildFHSEnv {
|
||||||
|
|
||||||
runScript = "decent-sampler";
|
runScript = "decent-sampler";
|
||||||
|
|
||||||
|
extraInstallCommands = ''
|
||||||
|
cp -r ${decent-sampler}/lib $out/lib
|
||||||
|
cp -r ${decent-sampler}/share $out/share
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "An audio sample player";
|
description = "An audio sample player";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
|
|
Loading…
Reference in a new issue