mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-05 05:13:04 +00:00
28 lines
654 B
Nix
28 lines
654 B
Nix
{ 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;
|
|
};
|
|
|
|
}
|