anytype: use finalAttrs

+6 -10
+6 -10
pkgs/by-name/an/anytype/package.nix
··· 12 commandLineArgs ? "", 13 }: 14 15 - let 16 pname = "anytype"; 17 version = "0.49.2"; 18 19 src = fetchFromGitHub { 20 owner = "anyproto"; 21 repo = "anytype-ts"; 22 - tag = "v${version}"; 23 hash = "sha256-8+x2FmyR5x9Zrm3t71RSyxAKcJCvnR98+fqHXjBE7aU="; 24 }; 25 - description = "P2P note-taking tool"; 26 27 locales = fetchFromGitHub { 28 owner = "anyproto"; ··· 30 rev = "873b42df7320ebbbc80d7e2477914dac70363ef7"; 31 hash = "sha256-Mr0KfXn9NO86QqgBhVjSs2przN/GtjuhJHJ9djo8Feg="; 32 }; 33 - in 34 - buildNpmPackage { 35 - inherit pname version src; 36 37 npmDepsHash = "sha256-fuNTSZl+4DG/YL34f/+bYK26ruRFAc1hyHVAm256LiE="; 38 ··· 62 cp -r ${anytype-heart}/lib dist/ 63 cp -r ${anytype-heart}/bin/anytypeHelper dist/ 64 65 - for lang in ${locales}/locales/*; do 66 cp "$lang" "dist/lib/json/lang/$(basename $lang)" 67 done 68 ··· 106 exec = "anytype %U"; 107 icon = "anytype"; 108 desktopName = "Anytype"; 109 - comment = description; 110 mimeTypes = [ "x-scheme-handler/anytype" ]; 111 categories = [ 112 "Utility" ··· 119 ]; 120 121 meta = { 122 - inherit description; 123 homepage = "https://anytype.io/"; 124 license = lib.licenses.unfreeRedistributable; 125 mainProgram = "anytype"; ··· 136 ]; 137 broken = stdenv.hostPlatform.isDarwin; 138 }; 139 - }
··· 12 commandLineArgs ? "", 13 }: 14 15 + buildNpmPackage (finalAttrs: { 16 pname = "anytype"; 17 version = "0.49.2"; 18 19 src = fetchFromGitHub { 20 owner = "anyproto"; 21 repo = "anytype-ts"; 22 + tag = "v${finalAttrs.version}"; 23 hash = "sha256-8+x2FmyR5x9Zrm3t71RSyxAKcJCvnR98+fqHXjBE7aU="; 24 }; 25 26 locales = fetchFromGitHub { 27 owner = "anyproto"; ··· 29 rev = "873b42df7320ebbbc80d7e2477914dac70363ef7"; 30 hash = "sha256-Mr0KfXn9NO86QqgBhVjSs2przN/GtjuhJHJ9djo8Feg="; 31 }; 32 33 npmDepsHash = "sha256-fuNTSZl+4DG/YL34f/+bYK26ruRFAc1hyHVAm256LiE="; 34 ··· 58 cp -r ${anytype-heart}/lib dist/ 59 cp -r ${anytype-heart}/bin/anytypeHelper dist/ 60 61 + for lang in ${finalAttrs.locales}/locales/*; do 62 cp "$lang" "dist/lib/json/lang/$(basename $lang)" 63 done 64 ··· 102 exec = "anytype %U"; 103 icon = "anytype"; 104 desktopName = "Anytype"; 105 + comment = finalAttrs.meta.description; 106 mimeTypes = [ "x-scheme-handler/anytype" ]; 107 categories = [ 108 "Utility" ··· 115 ]; 116 117 meta = { 118 + description = "P2P note-taking tool"; 119 homepage = "https://anytype.io/"; 120 license = lib.licenses.unfreeRedistributable; 121 mainProgram = "anytype"; ··· 132 ]; 133 broken = stdenv.hostPlatform.isDarwin; 134 }; 135 + })