nixpkgs/pkgs/development/interpreters/alda/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
1.1 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, makeWrapper, jre }:
2020-06-20 15:25:02 +00:00
stdenv.mkDerivation rec {
pname = "alda";
2022-04-26 20:53:19 +00:00
version = "2.2.3";
2020-06-20 15:25:02 +00:00
src_alda = fetchurl {
url = "https://alda-releases.nyc3.digitaloceanspaces.com/${version}/client/linux-amd64/alda";
2022-04-26 20:53:19 +00:00
hash = "sha256-cyOAXQ3ITIgy4QusjdYBNmNIzB6BzfbQEypvJbkbvWo=";
};
src_player = fetchurl {
url = "https://alda-releases.nyc3.digitaloceanspaces.com/${version}/player/non-windows/alda-player";
2022-04-26 20:53:19 +00:00
hash = "sha256-HsX0mNWrusL2FaK2oK8xhmr/ai+3ZiMmrJk7oS3b93g=";
2020-06-20 15:25:02 +00:00
};
dontUnpack = true;
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}
'';
2020-06-20 15:25:02 +00:00
meta = with lib; {
description = "A music programming language for musicians";
2020-06-20 15:25:02 +00:00
homepage = "https://alda.io";
license = licenses.epl10;
maintainers = [ maintainers.ericdallo ];
platforms = jre.meta.platforms;
};
}