python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / applications / graphics / rnote / default.nix
blobeb0eaaeda95d1336fe39e096c84265a26596aadb
1 { lib
2 , stdenv
3 , fetchFromGitHub
4 , alsa-lib
5 , appstream-glib
6 , clang
7 , cmake
8 , desktop-file-utils
9 , gio-sharp
10 , glib
11 , gstreamer
12 , gtk4
13 , libadwaita
14 , libxml2
15 , meson
16 , ninja
17 , pkg-config
18 , poppler
19 , python3
20 , rustPlatform
21 , shared-mime-info
22 , wrapGAppsHook4
25 stdenv.mkDerivation rec {
26   pname = "rnote";
27   version = "0.5.7";
29   src = fetchFromGitHub {
30     owner = "flxzt";
31     repo = "rnote";
32     rev = "v${version}";
33     fetchSubmodules = true;
34     hash = "sha256-w4y+t8idcaNwvC2Wp9SRjcd4m23Zt+yHG2fjOA2rBU8=";
35   };
37   cargoDeps = rustPlatform.fetchCargoTarball {
38     inherit src;
39     name = "${pname}-${version}";
40     hash = "sha256-Hybbbokru4vz5ly3oZuNGdBa+lYbhdYjESUpRxIUqJc=";
41   };
43   nativeBuildInputs = [
44     appstream-glib # For appstream-util
45     clang
46     cmake
47     desktop-file-utils # For update-desktop-database
48     meson
49     ninja
50     pkg-config
51     python3 # For the postinstall script
52     rustPlatform.cargoSetupHook
53     rustPlatform.rust.cargo
54     rustPlatform.rust.rustc
55     shared-mime-info # For update-mime-database
56     wrapGAppsHook4
57   ];
59   dontUseCmakeConfigure = true;
61   buildInputs = [
62     alsa-lib
63     gio-sharp
64     glib
65     gstreamer
66     gtk4
67     libadwaita
68     libxml2
69     poppler
70   ];
72   LIBCLANG_PATH = "${clang.cc.lib}/lib";
74   postPatch = ''
75     pushd build-aux
76     chmod +x meson_post_install.py
77     patchShebangs meson_post_install.py
78     substituteInPlace meson_post_install.py --replace "gtk-update-icon-cache" "gtk4-update-icon-cache"
79     popd
80   '';
82   meta = with lib; {
83     homepage = "https://github.com/flxzt/rnote";
84     description = "Simple drawing application to create handwritten notes";
85     license = licenses.gpl3Only;
86     maintainers = with maintainers; [ dotlambda yrd ];
87     platforms = platforms.linux;
88   };