2021-01-23 14:15:07 +01:00
|
|
|
{ lib, stdenv, fetchurl, jre }:
|
2020-06-20 17:25:02 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "alda";
|
2021-07-03 02:34:40 +02:00
|
|
|
version = "1.5.0";
|
2020-06-20 17:25:02 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/alda-lang/alda/releases/download/${version}/alda";
|
2021-07-03 02:34:40 +02:00
|
|
|
sha256 = "sha256-OHbOsgYN87ThU7EgjCgxADnOv32qIi+7XwDwcW0dmV0=";
|
2020-06-20 17:25:02 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
dontUnpack = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -Dm755 $src $out/bin/alda
|
|
|
|
sed -i -e '1 s!java!${jre}/bin/java!' $out/bin/alda
|
|
|
|
'';
|
|
|
|
|
2021-01-23 14:15:07 +01:00
|
|
|
meta = with lib; {
|
2020-10-11 07:55:05 +02:00
|
|
|
description = "A music programming language for musicians";
|
2020-06-20 17:25:02 +02:00
|
|
|
homepage = "https://alda.io";
|
|
|
|
license = licenses.epl10;
|
|
|
|
maintainers = [ maintainers.ericdallo ];
|
|
|
|
platforms = jre.meta.platforms;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|