Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 40 lines 1.1 kB view raw
1{ lib, stdenv, fetchurl, makeWrapper, jre }: 2 3stdenv.mkDerivation rec { 4 pname = "alda"; 5 version = "2.2.3"; 6 7 src_alda = fetchurl { 8 url = "https://alda-releases.nyc3.digitaloceanspaces.com/${version}/client/linux-amd64/alda"; 9 hash = "sha256-cyOAXQ3ITIgy4QusjdYBNmNIzB6BzfbQEypvJbkbvWo="; 10 }; 11 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 }; 16 17 dontUnpack = true; 18 19 nativeBuildInputs = [ makeWrapper ]; 20 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 28 29 wrapProgram $out/bin/alda --prefix PATH : $out/bin:${binPath} 30 wrapProgram $out/bin/alda-player --prefix PATH : $out/bin:${binPath} 31 ''; 32 33 meta = with lib; { 34 description = "A music programming language for musicians"; 35 homepage = "https://alda.io"; 36 license = licenses.epl10; 37 maintainers = [ maintainers.ericdallo ]; 38 platforms = jre.meta.platforms; 39 }; 40}