git.iko.soy/typeable/nixpkgs
on master help sign in
rnote: init at 0.3.5
commitfe350bee92aee31800b0c0487b5cf6015e438ab6 authorYannik Rödel <hey@yannik.info> dateTue 25 Jan 2022, 08:34 (5 years ago) parentccd9fb5
2 files changed+80
pkgs/applications/graphics/rnote/default.nix+76 pkgs/top-level/all-packages.nix+4
pkgs/applications/graphics/rnote/default.nixnew file+76
@@ -0,0 +1,76 @@
1+{ lib
2+, stdenv
3+, fetchFromGitHub
4+, desktop-file-utils
5+, gio-sharp
6+, glib
7+, gstreamer
8+, gtk4
9+, libadwaita
10+, libxml2
11+, meson
12+, ninja
13+, pkg-config
14+, poppler
15+, python3
16+, rustPlatform
17+, shared-mime-info
18+, wrapGAppsHook4
19+}:
20+
21+stdenv.mkDerivation rec {
22+ pname = "rnote";
23+ version = "0.3.5";
24+
25+ src = fetchFromGitHub {
26+ owner = "flxzt";
27+ repo = "rnote";
28+ rev = "v${version}";
29+ sha256 = "5g5SQJc5aopYxtHNP5T85TtcazovrveUCnMhJ90p2t4=";
30+ };
31+
32+ cargoDeps = rustPlatform.fetchCargoTarball {
33+ inherit src;
34+ name = "${pname}-${version}";
35+ hash = "sha256-vnLesWXdqNzlWNQsUVy03kfmcDNazQ1BbizQDoG1kgM=";
36+ };
37+
38+ nativeBuildInputs = [
39+ desktop-file-utils # For update-desktop-database
40+ meson
41+ ninja
42+ pkg-config
43+ python3 # For the postinstall script
44+ rustPlatform.cargoSetupHook
45+ rustPlatform.rust.cargo
46+ rustPlatform.rust.rustc
47+ shared-mime-info # For update-mime-database
48+ wrapGAppsHook4
49+ ];
50+
51+ buildInputs = [
52+ gio-sharp
53+ glib
54+ gstreamer
55+ gtk4
56+ libadwaita
57+ libxml2
58+ poppler
59+ ];
60+
61+ postPatch = ''
62+ pushd build-aux
63+ chmod +x meson_post_install.py
64+ patchShebangs meson_post_install.py
65+ substituteInPlace meson_post_install.py --replace "gtk-update-icon-cache" "gtk4-update-icon-cache"
66+ popd
67+ '';
68+
69+ meta = with lib; {
70+ homepage = "https://github.com/flxzt/rnote";
71+ description = "Simple drawing application to create handwritten notes";
72+ license = licenses.gpl3Only;
73+ maintainers = with maintainers; [ dotlambda yrd ];
74+ platforms = platforms.linux;
75+ };
76+}
pkgs/top-level/all-packages.nix+4
@@ -9440,6 +9440,10 @@ with pkgs;
94409440
94419441 rnnoise-plugin = callPackage ../development/libraries/rnnoise-plugin {};
94429442
9443+ rnote = callPackage ../applications/graphics/rnote {
9444+ inherit (gst_all_1) gstreamer;
9445+ };
9446+
94439447 rnp = callPackage ../tools/security/rnp { };
94449448
94459449 rnv = callPackage ../tools/text/xml/rnv { };