2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, jre }:
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "alda";
|
2021-03-12 07:09:13 +00:00
|
|
|
version = "1.4.4";
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/alda-lang/alda/releases/download/${version}/alda";
|
2021-03-12 07:09:13 +00:00
|
|
|
sha256 = "sha256-zIq8coSh4B9VGrixkQfhySK7qhlFG2p7O0suvbiScKY=";
|
2020-08-20 17:08:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
dontUnpack = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -Dm755 $src $out/bin/alda
|
|
|
|
sed -i -e '1 s!java!${jre}/bin/java!' $out/bin/alda
|
|
|
|
'';
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-10-19 00:13:06 +00:00
|
|
|
description = "A music programming language for musicians";
|
2020-08-20 17:08:02 +00:00
|
|
|
homepage = "https://alda.io";
|
|
|
|
license = licenses.epl10;
|
|
|
|
maintainers = [ maintainers.ericdallo ];
|
|
|
|
platforms = jre.meta.platforms;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|