mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
nix: rename custom -> packages
This commit is contained in:
parent
754882bf0d
commit
afc2eea47a
24 changed files with 1 additions and 1 deletions
41
nix/packages/dl-librescore.nix
Normal file
41
nix/packages/dl-librescore.nix
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
{
|
||||
lib,
|
||||
stdenv,
|
||||
buildNpmPackage,
|
||||
fetchFromGitHub,
|
||||
python3,
|
||||
darwin,
|
||||
}:
|
||||
|
||||
buildNpmPackage rec {
|
||||
pname = "dl-librescore";
|
||||
version = "0.35.17";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "LibreScore";
|
||||
repo = "dl-librescore";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-u09aquwZIT2XxxaqirrMU5Q3PpXbj70bcI3pOflxVAE=";
|
||||
};
|
||||
|
||||
npmDepsHash = "sha256-LZgVQNFXUqFbzXKdXk8wsMDBqApmtXFLRUw6zIKDAqs=";
|
||||
|
||||
# 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; [ ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue