about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/interpreters/alda/default.nix
blob: 96d4207dbe8f8f545c503447383e6142976b27da (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ lib, stdenv, fetchurl, jre }:

stdenv.mkDerivation rec {
  pname = "alda";
  version = "1.5.0";

  src = fetchurl {
    url = "https://github.com/alda-lang/alda/releases/download/${version}/alda";
    sha256 = "sha256-OHbOsgYN87ThU7EgjCgxADnOv32qIi+7XwDwcW0dmV0=";
  };

  dontUnpack = true;

  installPhase = ''
    install -Dm755 $src $out/bin/alda
    sed -i -e '1 s!java!${jre}/bin/java!' $out/bin/alda
  '';

  meta = with lib; {
    description = "A music programming language for musicians";
    homepage = "https://alda.io";
    license = licenses.epl10;
    maintainers = [ maintainers.ericdallo ];
    platforms = jre.meta.platforms;
  };

}