2021-01-23 13:15:07 +00:00
|
|
|
{ lib, stdenv, fetchurl, jre }:
|
2020-06-20 16:25:02 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "alda";
|
2020-10-17 15:45:08 +01:00
|
|
|
version = "1.4.3";
|
2020-06-20 16:25:02 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/alda-lang/alda/releases/download/${version}/alda";
|
2020-10-17 15:45:08 +01:00
|
|
|
sha256 = "1c9rbwb3ga8w7zi0ndqq02hjr4drdw8s509qxxd3fh5vfy6x3qi2";
|
2020-06-20 16:25:02 +01: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 13:15:07 +00:00
|
|
|
meta = with lib; {
|
2020-10-11 06:55:05 +01:00
|
|
|
description = "A music programming language for musicians";
|
2020-06-20 16:25:02 +01:00
|
|
|
homepage = "https://alda.io";
|
|
|
|
license = licenses.epl10;
|
|
|
|
maintainers = [ maintainers.ericdallo ];
|
|
|
|
platforms = jre.meta.platforms;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|