mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 00:24:18 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
41 lines
1.1 KiB
Nix
41 lines
1.1 KiB
Nix
{ lib, stdenv, fetchurl, makeWrapper, jre }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "alda";
|
|
version = "2.2.3";
|
|
|
|
src_alda = fetchurl {
|
|
url = "https://alda-releases.nyc3.digitaloceanspaces.com/${version}/client/linux-amd64/alda";
|
|
hash = "sha256-cyOAXQ3ITIgy4QusjdYBNmNIzB6BzfbQEypvJbkbvWo=";
|
|
};
|
|
|
|
src_player = fetchurl {
|
|
url = "https://alda-releases.nyc3.digitaloceanspaces.com/${version}/player/non-windows/alda-player";
|
|
hash = "sha256-HsX0mNWrusL2FaK2oK8xhmr/ai+3ZiMmrJk7oS3b93g=";
|
|
};
|
|
|
|
dontUnpack = true;
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
installPhase =
|
|
let
|
|
binPath = lib.makeBinPath [ jre ];
|
|
in
|
|
''
|
|
install -D $src_alda $out/bin/alda
|
|
install -D $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; {
|
|
description = "Music programming language for musicians";
|
|
homepage = "https://alda.io";
|
|
license = licenses.epl10;
|
|
maintainers = [ maintainers.ericdallo ];
|
|
platforms = jre.meta.platforms;
|
|
};
|
|
}
|