mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 16:15:05 +00:00
f0db4f165e
Diff: https://github.com/musescore/MuseScore/compare/v3.6.2...v4.0.1 Update license, fix nixos test and add missing inputs.
36 lines
1.0 KiB
Nix
36 lines
1.0 KiB
Nix
{ stdenv, lib, fetchurl, undmg }:
|
|
|
|
let
|
|
versionComponents = [ "4" "0" "1" ];
|
|
appName = "MuseScore ${builtins.head versionComponents}";
|
|
ref = "230121751";
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "musescore-darwin";
|
|
version = lib.concatStringsSep "." versionComponents;
|
|
|
|
# The disk image contains the .app and a symlink to /Applications.
|
|
sourceRoot = "${appName}.app";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/musescore/MuseScore/releases/download/v${version}/MuseScore-${version}.${ref}.dmg";
|
|
hash = "sha256-tkIEV+tCS0SYh2TlC70/zEBUEOSg//EaSKDGA7kH/vo=";
|
|
};
|
|
|
|
buildInputs = [ undmg ];
|
|
installPhase = ''
|
|
mkdir -p "$out/Applications/${appName}.app"
|
|
cp -R . "$out/Applications/${appName}.app"
|
|
chmod a+x "$out/Applications/${appName}.app/Contents/MacOS/mscore"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Music notation and composition software";
|
|
homepage = "https://musescore.org/";
|
|
license = licenses.gpl3Only;
|
|
platforms = platforms.darwin;
|
|
maintainers = [];
|
|
};
|
|
}
|