2021-12-03 01:18:08 +00:00
|
|
|
{ lib, stdenv, fetchurl, makeWrapper, jre }:
|
2020-06-20 15:25:02 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "alda";
|
2022-03-21 21:44:37 +00:00
|
|
|
version = "2.2.0";
|
2020-06-20 15:25:02 +00:00
|
|
|
|
2021-12-03 01:18:08 +00:00
|
|
|
src_alda = fetchurl {
|
|
|
|
url = "https://alda-releases.nyc3.digitaloceanspaces.com/${version}/client/linux-amd64/alda";
|
2022-03-21 21:44:37 +00:00
|
|
|
sha256 = "0z3n81fmv3fxwgr641r6jjn1dmi5d3rw8d6r8jdfjhgpxanyi9a7";
|
2021-12-03 01:18:08 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
src_player = fetchurl {
|
|
|
|
url = "https://alda-releases.nyc3.digitaloceanspaces.com/${version}/player/non-windows/alda-player";
|
2022-03-21 21:44:37 +00:00
|
|
|
sha256 = "11kji846hbn1f2w1s7rc1ing203jkamy89j1jmysajvirdpp8nha";
|
2020-06-20 15:25:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
dontUnpack = true;
|
|
|
|
|
2021-12-03 01:18:08 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
installPhase =
|
|
|
|
let
|
|
|
|
binPath = lib.makeBinPath [ jre ];
|
|
|
|
in
|
|
|
|
''
|
|
|
|
install -D $src_alda $out/bin/alda
|
|
|
|
install -D $src_player $out/bin/alda-player
|
|
|
|
|
|
|
|
wrapProgram $out/bin/alda --prefix PATH : $out/bin:${binPath}
|
|
|
|
wrapProgram $out/bin/alda-player --prefix PATH : $out/bin:${binPath}
|
|
|
|
'';
|
2020-06-20 15:25:02 +00:00
|
|
|
|
2021-01-23 13:15:07 +00:00
|
|
|
meta = with lib; {
|
2020-10-11 05:55:05 +00:00
|
|
|
description = "A music programming language for musicians";
|
2020-06-20 15:25:02 +00:00
|
|
|
homepage = "https://alda.io";
|
|
|
|
license = licenses.epl10;
|
|
|
|
maintainers = [ maintainers.ericdallo ];
|
|
|
|
platforms = jre.meta.platforms;
|
|
|
|
};
|
|
|
|
}
|