diff options
author | Bobby Rong <rjl931189261@126.com> | 2021-12-17 15:06:47 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-17 15:06:47 +0800 |
commit | be54658bd0d1cdb621223d2f0e810f99acfa8f53 (patch) | |
tree | 9fa76dec9539f96f1c6d8dcb682cb31ef338c5f7 /pkgs | |
parent | ba804c2a067f7887d64c9dab7196ddd93b004ad3 (diff) | |
parent | 9cd2330e7d77984b01b77cc18d93afa3d8332dd5 (diff) |
Merge pull request #148366 from robwhitaker/bump-alda
alda: 1.5.0 -> 2.0.6
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/interpreters/alda/default.nix | 33 |
1 files changed, 23 insertions, 10 deletions
diff --git a/pkgs/development/interpreters/alda/default.nix b/pkgs/development/interpreters/alda/default.nix index 96d4207dbe8f8..ec46a5e3923d8 100644 --- a/pkgs/development/interpreters/alda/default.nix +++ b/pkgs/development/interpreters/alda/default.nix @@ -1,20 +1,34 @@ -{ lib, stdenv, fetchurl, jre }: +{ lib, stdenv, fetchurl, makeWrapper, jre }: stdenv.mkDerivation rec { pname = "alda"; - version = "1.5.0"; + version = "2.0.6"; - src = fetchurl { - url = "https://github.com/alda-lang/alda/releases/download/${version}/alda"; - sha256 = "sha256-OHbOsgYN87ThU7EgjCgxADnOv32qIi+7XwDwcW0dmV0="; + src_alda = fetchurl { + url = "https://alda-releases.nyc3.digitaloceanspaces.com/${version}/client/linux-amd64/alda"; + sha256 = "1078hywl3gim5wfgxb0xwbk1dn80ls3i7y33n76qsdd4b0x0sn7i"; + }; + + src_player = fetchurl { + url = "https://alda-releases.nyc3.digitaloceanspaces.com/${version}/player/non-windows/alda-player"; + sha256 = "1g7k2qnh4vcw63604z7zbvhbpn7l1v3m9mx4j4vywfq6qar1r6ck"; }; dontUnpack = true; - installPhase = '' - install -Dm755 $src $out/bin/alda - sed -i -e '1 s!java!${jre}/bin/java!' $out/bin/alda - ''; + 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} + ''; meta = with lib; { description = "A music programming language for musicians"; @@ -23,5 +37,4 @@ stdenv.mkDerivation rec { maintainers = [ maintainers.ericdallo ]; platforms = jre.meta.platforms; }; - } |