1 { lib, stdenv, fetchurl, makeWrapper, jre }:
3 stdenv.mkDerivation rec {
8 url = "https://alda-releases.nyc3.digitaloceanspaces.com/${version}/client/linux-amd64/alda";
9 hash = "sha256-cyOAXQ3ITIgy4QusjdYBNmNIzB6BzfbQEypvJbkbvWo=";
12 src_player = fetchurl {
13 url = "https://alda-releases.nyc3.digitaloceanspaces.com/${version}/player/non-windows/alda-player";
14 hash = "sha256-HsX0mNWrusL2FaK2oK8xhmr/ai+3ZiMmrJk7oS3b93g=";
19 nativeBuildInputs = [ makeWrapper ];
23 binPath = lib.makeBinPath [ jre ];
26 install -D $src_alda $out/bin/alda
27 install -D $src_player $out/bin/alda-player
29 wrapProgram $out/bin/alda --prefix PATH : $out/bin:${binPath}
30 wrapProgram $out/bin/alda-player --prefix PATH : $out/bin:${binPath}
34 description = "Music programming language for musicians";
35 homepage = "https://alda.io";
36 license = licenses.epl10;
37 maintainers = [ maintainers.ericdallo ];
38 platforms = jre.meta.platforms;