rnote: use fetchCargoVendor and refactor

This commit is contained in:
emaryn
2025-03-03 20:28:23 +08:00
parent 1a142a02e3
commit c02027a182
2 changed files with 8 additions and 4913 deletions
-4902
View File
File diff suppressed because it is too large Load Diff
+8 -11
View File
@@ -32,16 +32,13 @@ stdenv.mkDerivation rec {
src = fetchFromGitHub {
owner = "flxzt";
repo = "rnote";
rev = "v${version}";
tag = "v${version}";
hash = "sha256-RbuEgmly6Mjmx58zOV+tg6Mv5ghCNy/dE5FXYrEXtdg=";
};
cargoDeps = rustPlatform.importCargoLock {
lockFile = ./Cargo.lock;
outputHashes = {
"ink-stroke-modeler-rs-0.1.0" = "sha256-B6lT6qSOIHxqBpKTE4nO2+Xs9KF7JLVRUHOkYp8Sl+M=";
"piet-0.6.2" = "sha256-3juXzuKwoLuxia6MoVwbcBJ3jXBQ9QRNVoxo3yFp2Iw=";
};
cargoDeps = rustPlatform.fetchCargoVendor {
inherit pname version src;
hash = "sha256-0c3Me9SobMvUiJqTyz/3zhEvntkiJFS92BNJ9rRBAv0=";
};
nativeBuildInputs = [
@@ -90,16 +87,16 @@ stdenv.mkDerivation rec {
NIX_CFLAGS_COMPILE = "-Wno-error=incompatible-function-pointer-types";
};
meta = with lib; {
meta = {
homepage = "https://github.com/flxzt/rnote";
changelog = "https://github.com/flxzt/rnote/releases/tag/${src.rev}";
description = "Simple drawing application to create handwritten notes";
license = licenses.gpl3Plus;
maintainers = with maintainers; [
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [
dotlambda
gepbird
yrd
];
platforms = platforms.unix;
platforms = lib.platforms.unix;
};
}