mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-11 18:32:23 +08:00
committed by
github-actions[bot]
parent
bc25cc26d4
commit
e45cedbedc
@@ -12,17 +12,16 @@
|
|||||||
commandLineArgs ? "",
|
commandLineArgs ? "",
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
buildNpmPackage (finalAttrs: {
|
||||||
pname = "anytype";
|
pname = "anytype";
|
||||||
version = "0.49.2";
|
version = "0.49.2";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "anyproto";
|
owner = "anyproto";
|
||||||
repo = "anytype-ts";
|
repo = "anytype-ts";
|
||||||
tag = "v${version}";
|
tag = "v${finalAttrs.version}";
|
||||||
hash = "sha256-8+x2FmyR5x9Zrm3t71RSyxAKcJCvnR98+fqHXjBE7aU=";
|
hash = "sha256-8+x2FmyR5x9Zrm3t71RSyxAKcJCvnR98+fqHXjBE7aU=";
|
||||||
};
|
};
|
||||||
description = "P2P note-taking tool";
|
|
||||||
|
|
||||||
locales = fetchFromGitHub {
|
locales = fetchFromGitHub {
|
||||||
owner = "anyproto";
|
owner = "anyproto";
|
||||||
@@ -30,9 +29,6 @@ let
|
|||||||
rev = "873b42df7320ebbbc80d7e2477914dac70363ef7";
|
rev = "873b42df7320ebbbc80d7e2477914dac70363ef7";
|
||||||
hash = "sha256-Mr0KfXn9NO86QqgBhVjSs2przN/GtjuhJHJ9djo8Feg=";
|
hash = "sha256-Mr0KfXn9NO86QqgBhVjSs2przN/GtjuhJHJ9djo8Feg=";
|
||||||
};
|
};
|
||||||
in
|
|
||||||
buildNpmPackage {
|
|
||||||
inherit pname version src;
|
|
||||||
|
|
||||||
npmDepsHash = "sha256-fuNTSZl+4DG/YL34f/+bYK26ruRFAc1hyHVAm256LiE=";
|
npmDepsHash = "sha256-fuNTSZl+4DG/YL34f/+bYK26ruRFAc1hyHVAm256LiE=";
|
||||||
|
|
||||||
@@ -62,7 +58,7 @@ buildNpmPackage {
|
|||||||
cp -r ${anytype-heart}/lib dist/
|
cp -r ${anytype-heart}/lib dist/
|
||||||
cp -r ${anytype-heart}/bin/anytypeHelper dist/
|
cp -r ${anytype-heart}/bin/anytypeHelper dist/
|
||||||
|
|
||||||
for lang in ${locales}/locales/*; do
|
for lang in ${finalAttrs.locales}/locales/*; do
|
||||||
cp "$lang" "dist/lib/json/lang/$(basename $lang)"
|
cp "$lang" "dist/lib/json/lang/$(basename $lang)"
|
||||||
done
|
done
|
||||||
|
|
||||||
@@ -106,7 +102,7 @@ buildNpmPackage {
|
|||||||
exec = "anytype %U";
|
exec = "anytype %U";
|
||||||
icon = "anytype";
|
icon = "anytype";
|
||||||
desktopName = "Anytype";
|
desktopName = "Anytype";
|
||||||
comment = description;
|
comment = finalAttrs.meta.description;
|
||||||
mimeTypes = [ "x-scheme-handler/anytype" ];
|
mimeTypes = [ "x-scheme-handler/anytype" ];
|
||||||
categories = [
|
categories = [
|
||||||
"Utility"
|
"Utility"
|
||||||
@@ -119,7 +115,7 @@ buildNpmPackage {
|
|||||||
];
|
];
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
inherit description;
|
description = "P2P note-taking tool";
|
||||||
homepage = "https://anytype.io/";
|
homepage = "https://anytype.io/";
|
||||||
license = lib.licenses.unfreeRedistributable;
|
license = lib.licenses.unfreeRedistributable;
|
||||||
mainProgram = "anytype";
|
mainProgram = "anytype";
|
||||||
@@ -137,4 +133,4 @@ buildNpmPackage {
|
|||||||
];
|
];
|
||||||
broken = stdenv.hostPlatform.isDarwin;
|
broken = stdenv.hostPlatform.isDarwin;
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user