depot/third_party/nixpkgs/pkgs/development/interpreters/alda/default.nix
Default email d6cfb865ad Project import generated by Copybara.
GitOrigin-RevId: 5265d49a36bb5a18c85e6817b338b456acc3b8cc
2020-10-18 20:13:06 -04:00

27 lines
657 B
Nix

{ stdenv, fetchurl, jre }:
stdenv.mkDerivation rec {
pname = "alda";
version = "1.4.3";
src = fetchurl {
url = "https://github.com/alda-lang/alda/releases/download/${version}/alda";
sha256 = "1c9rbwb3ga8w7zi0ndqq02hjr4drdw8s509qxxd3fh5vfy6x3qi2";
};
dontUnpack = true;
installPhase = ''
install -Dm755 $src $out/bin/alda
sed -i -e '1 s!java!${jre}/bin/java!' $out/bin/alda
'';
meta = with stdenv.lib; {
description = "A music programming language for musicians";
homepage = "https://alda.io";
license = licenses.epl10;
maintainers = [ maintainers.ericdallo ];
platforms = jre.meta.platforms;
};
}