Merge pull request #250250 from dotlambda/musescore-downloader-buildNpmPackage

nodePackages.musescore-downloader: use buildNpmPackage
This commit is contained in:
Robert Schütz 2023-09-03 20:07:04 +00:00 committed by GitHub
commit bb411d1967
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 47 additions and 85 deletions

View File

@ -86,6 +86,7 @@ mapAliases {
markdownlint-cli = pkgs.markdownlint-cli; # added 2023-07-29
inherit (pkgs) markdownlint-cli2; # added 2023-08-22
mdctl-cli = self."@medable/mdctl-cli"; # added 2023-08-21
musescore-downloader = pkgs.dl-librescore; # added 2023-08-19
node-inspector = throw "node-inspector was removed because it was broken"; # added 2023-08-21
inherit (pkgs) npm-check-updates; # added 2023-08-22
inherit (pkgs) react-static; # added 2023-08-21

View File

@ -185,7 +185,6 @@
, "meat"
, "mocha"
, "multi-file-swagger"
, "musescore-downloader"
, "near-cli"
, "neovim"
, "nijs"

View File

@ -98828,90 +98828,6 @@ in
bypassCache = true;
reconstructLock = true;
};
musescore-downloader = nodeEnv.buildNodePackage {
name = "musescore-downloader";
packageName = "musescore-downloader";
version = "0.26.0";
src = fetchurl {
url = "https://registry.npmjs.org/musescore-downloader/-/musescore-downloader-0.26.0.tgz";
sha512 = "AHA5wSaEJLwfEEQDl8kLfin7l4uejXYTzWtn/BgUiyWKw4AbuUK2/xfDmULW2KxUfsK2RoLl0bFtIvdvvm4CNA==";
};
dependencies = [
sources."@librescore/fonts-0.4.1"
sources."@librescore/sf3-0.3.0"
sources."ansi-escapes-4.3.2"
sources."ansi-regex-5.0.1"
sources."ansi-styles-4.3.0"
sources."base64-js-1.5.1"
sources."bl-4.1.0"
sources."buffer-5.7.1"
sources."chalk-4.1.2"
sources."chardet-0.7.0"
sources."cli-cursor-3.1.0"
sources."cli-spinners-2.9.0"
sources."cli-width-3.0.0"
sources."clone-1.0.4"
sources."color-convert-2.0.1"
sources."color-name-1.1.4"
sources."defaults-1.0.4"
sources."detect-node-2.1.0"
sources."emoji-regex-8.0.0"
(sources."encoding-0.1.13" // {
dependencies = [
sources."iconv-lite-0.6.3"
];
})
sources."escape-string-regexp-1.0.5"
sources."external-editor-3.1.0"
sources."figures-3.2.0"
sources."has-flag-4.0.0"
sources."iconv-lite-0.4.24"
sources."ieee754-1.2.1"
sources."inherits-2.0.4"
sources."inquirer-7.3.3"
sources."is-fullwidth-code-point-3.0.0"
sources."is-interactive-1.0.0"
sources."is-unicode-supported-0.1.0"
sources."lodash-4.17.21"
sources."log-symbols-4.1.0"
sources."mimic-fn-2.1.0"
sources."mute-stream-0.0.8"
sources."node-fetch-2.6.13"
sources."onetime-5.1.2"
sources."ora-5.4.1"
sources."os-tmpdir-1.0.2"
sources."readable-stream-3.6.2"
sources."restore-cursor-3.1.0"
sources."run-async-2.4.1"
sources."rxjs-6.6.7"
sources."safe-buffer-5.2.1"
sources."safer-buffer-2.1.2"
sources."signal-exit-3.0.7"
sources."string-width-4.2.3"
sources."string_decoder-1.3.0"
sources."strip-ansi-6.0.1"
sources."supports-color-7.2.0"
sources."through-2.3.8"
sources."tmp-0.0.33"
sources."tr46-0.0.3"
sources."tslib-1.14.1"
sources."type-fest-0.21.3"
sources."util-deprecate-1.0.2"
sources."wcwidth-1.0.1"
sources."webidl-conversions-3.0.1"
sources."webmscore-0.18.0"
sources."whatwg-url-5.0.0"
];
buildInputs = globalBuildInputs;
meta = {
description = "download sheet music from musescore.com for free, no login or Musescore Pro required | Musescore Pro musescore.com ";
homepage = "https://github.com/Xmader/musescore-downloader#readme";
license = "MIT";
};
production = true;
bypassCache = true;
reconstructLock = true;
};
near-cli = nodeEnv.buildNodePackage {
name = "near-cli";
packageName = "near-cli";

View File

@ -0,0 +1,44 @@
{ lib
, stdenv
, buildNpmPackage
, fetchFromGitHub
, python3
, darwin
}:
buildNpmPackage rec {
pname = "dl-librescore";
version = "0.34.47";
src = fetchFromGitHub {
owner = "LibreScore";
repo = "dl-librescore";
rev = "v${version}";
hash = "sha256-yXreyQiIKmZEw2HcpnCW4TxCTHzdq+KuPSlFPFZy2oU=";
};
npmDepsHash = "sha256-qKu7xViApKg/4EubS4tsZEtNoW62rpC4e6xmBugSkek=";
# see https://github.com/LibreScore/dl-librescore/pull/32
# TODO can be removed with next update
postPatch = ''
substituteInPlace package-lock.json \
--replace 50c7a1508cd9358757c30794e14ba777e6faa8aa b4cb32eb1734a2f73ba2d92743647b1a91c0e2a8
'';
makeCacheWritable = true;
nativeBuildInputs = [
python3
] ++ lib.optionals stdenv.isDarwin [
darwin.cctools
];
meta = {
description = "Download sheet music";
homepage = "https://github.com/LibreScore/dl-librescore";
license = lib.licenses.mit;
mainProgram = "dl-librescore";
maintainers = with lib.maintainers; [ ];
};
}

View File

@ -3711,6 +3711,8 @@ with pkgs;
dkimpy = with python3Packages; toPythonApplication dkimpy;
dl-librescore = callPackage ../tools/audio/dl-librescore { };
dontgo403 = callPackage ../tools/security/dontgo403 { };
dpt-rp1-py = callPackage ../tools/misc/dpt-rp1-py { };