{ungoogled-,}chromium,chromedriver: 130.0.6723.58 -> 130.0.6723.69 (#351519)
[NixPkgs.git] / pkgs / development / interpreters / alda / default.nix
blobf9711c16a5731793e4cf651eaf99631efec836c4
1 { lib, stdenv, fetchurl, makeWrapper, jre }:
3 stdenv.mkDerivation rec {
4   pname = "alda";
5   version = "2.2.3";
7   src_alda = fetchurl {
8     url = "https://alda-releases.nyc3.digitaloceanspaces.com/${version}/client/linux-amd64/alda";
9     hash = "sha256-cyOAXQ3ITIgy4QusjdYBNmNIzB6BzfbQEypvJbkbvWo=";
10   };
12   src_player = fetchurl {
13     url = "https://alda-releases.nyc3.digitaloceanspaces.com/${version}/player/non-windows/alda-player";
14     hash = "sha256-HsX0mNWrusL2FaK2oK8xhmr/ai+3ZiMmrJk7oS3b93g=";
15   };
17   dontUnpack = true;
19   nativeBuildInputs = [ makeWrapper ];
21   installPhase =
22     let
23       binPath = lib.makeBinPath [ jre ];
24     in
25     ''
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}
31     '';
33   meta = with lib; {
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;
39   };