mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-03 20:33:21 +00:00
185b513244
Diff: https://github.com/flxzt/rnote/compare/v0.7.0...v0.7.1 Changelog: https://github.com/flxzt/rnote/releases/tag/v0.7.1
97 lines
2.0 KiB
Nix
97 lines
2.0 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, alsa-lib
|
|
, appstream-glib
|
|
, cargo
|
|
, cmake
|
|
, desktop-file-utils
|
|
, glib
|
|
, gstreamer
|
|
, gtk4
|
|
, libadwaita
|
|
, libxml2
|
|
, meson
|
|
, ninja
|
|
, pkg-config
|
|
, poppler
|
|
, python3
|
|
, rustPlatform
|
|
, rustc
|
|
, shared-mime-info
|
|
, wrapGAppsHook4
|
|
, AudioUnit
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "rnote";
|
|
version = "0.7.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "flxzt";
|
|
repo = "rnote";
|
|
rev = "v${version}";
|
|
hash = "sha256-QcgmL6lLi/3QXnlcEsVyTqNUfjSm+R+nhRzRvw8M9Qc=";
|
|
};
|
|
|
|
cargoDeps = rustPlatform.importCargoLock {
|
|
lockFile = ./Cargo.lock;
|
|
outputHashes = {
|
|
"ink-stroke-modeler-rs-0.1.0" = "sha256-1abfrPehOGc/ye/iFIwYPd6HJX6P8OP2vGBSJfeo+c8=";
|
|
"librsvg-2.56.2" = "sha256-uCHKDC4nc7J0k9qsmzF6etkWOoNq51Dddd9uQw5DOT0=";
|
|
"piet-0.6.2" = "sha256-If0qiZkgXeLvsrECItV9/HmhTk1H52xmVO7cUsD9dcU=";
|
|
};
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
appstream-glib # For appstream-util
|
|
cmake
|
|
desktop-file-utils # For update-desktop-database
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
python3 # For the postinstall script
|
|
rustPlatform.bindgenHook
|
|
rustPlatform.cargoSetupHook
|
|
cargo
|
|
rustc
|
|
shared-mime-info # For update-mime-database
|
|
wrapGAppsHook4
|
|
];
|
|
|
|
dontUseCmakeConfigure = true;
|
|
|
|
mesonFlags = [
|
|
(lib.mesonBool "cli" true)
|
|
];
|
|
|
|
buildInputs = [
|
|
glib
|
|
gstreamer
|
|
gtk4
|
|
libadwaita
|
|
libxml2
|
|
poppler
|
|
] ++ lib.optionals stdenv.isLinux [
|
|
alsa-lib
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
AudioUnit
|
|
];
|
|
|
|
postPatch = ''
|
|
pushd build-aux
|
|
chmod +x cargo_build.py meson_post_install.py
|
|
patchShebangs cargo_build.py meson_post_install.py
|
|
popd
|
|
'';
|
|
|
|
meta = with lib; {
|
|
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; [ dotlambda yrd ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|