Skip to content

Commit

Permalink
[Backport release-24.11] alda: 2.2.3 -> 2.3.1 (#367017)
Browse files Browse the repository at this point in the history
* alda: nixfmt

(cherry picked from commit cfb2583)

* alda: 2.2.3 -> 2.3.1

(cherry picked from commit 9f2c121)

---------

Co-authored-by: wxt <[email protected]>
  • Loading branch information
nix-backports[bot] and Bot-wxt1221 authored Dec 21, 2024
1 parent d38b1bc commit cc3e99d
Showing 1 changed file with 20 additions and 14 deletions.
34 changes: 20 additions & 14 deletions pkgs/by-name/al/alda/package.nix
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
{ lib, stdenv, fetchurl, makeWrapper, jre }:

stdenv.mkDerivation rec {
{
lib,
stdenv,
fetchurl,
makeWrapper,
jre,
}:

stdenv.mkDerivation (finalAttrs: {
pname = "alda";
version = "2.2.3";
version = "2.3.1";

src_alda = fetchurl {
url = "https://alda-releases.nyc3.digitaloceanspaces.com/${version}/client/linux-amd64/alda";
hash = "sha256-cyOAXQ3ITIgy4QusjdYBNmNIzB6BzfbQEypvJbkbvWo=";
url = "https://alda-releases.nyc3.digitaloceanspaces.com/${finalAttrs.version}/client/linux-amd64/alda";
hash = "sha256-m4d3cLgqWmGMw0SM4J+7nvV/ytSoB7obMDiJCh3yboQ=";
};

src_player = fetchurl {
url = "https://alda-releases.nyc3.digitaloceanspaces.com/${version}/player/non-windows/alda-player";
hash = "sha256-HsX0mNWrusL2FaK2oK8xhmr/ai+3ZiMmrJk7oS3b93g=";
url = "https://alda-releases.nyc3.digitaloceanspaces.com/${finalAttrs.version}/player/non-windows/alda-player";
hash = "sha256-XwgOidQjnMClXPIS1JPzsVJ6c7vXwBHBAfUPX3WL8uU=";
};

dontUnpack = true;
Expand All @@ -23,18 +29,18 @@ stdenv.mkDerivation rec {
binPath = lib.makeBinPath [ jre ];
in
''
install -D $src_alda $out/bin/alda
install -D $src_player $out/bin/alda-player
install -D ${finalAttrs.src_alda} $out/bin/alda
install -D ${finalAttrs.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}
'';

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

0 comments on commit cc3e99d

Please sign in to comment.