nixpkgs/pkgs/applications/misc/notejot/default.nix

69 lines
1.2 KiB
Nix
Raw Normal View History

2021-05-12 12:12:27 +00:00
{ lib
, stdenv
, fetchFromGitHub
, gtk4
2021-10-16 02:10:45 +00:00
, hicolor-icon-theme
2021-05-12 12:12:27 +00:00
, json-glib
, libadwaita
, libgee
, meson
, ninja
, nix-update-script
, pkg-config
, python3
, vala
2021-10-16 02:10:45 +00:00
, wrapGAppsHook4
2021-05-12 12:12:27 +00:00
}:
2018-09-08 08:07:55 +00:00
stdenv.mkDerivation rec {
pname = "notejot";
2021-10-16 02:10:45 +00:00
version = "3.2.0";
2018-09-08 08:07:55 +00:00
src = fetchFromGitHub {
owner = "lainsce";
repo = pname;
rev = version;
2021-10-16 02:10:45 +00:00
hash = "sha256-WyW1tGhO3+OykNa8BRavi93cBMOSBJw0M+0bwQHJOjU=";
2018-09-08 08:07:55 +00:00
};
2021-10-16 02:10:45 +00:00
patches = [
# build: use gtk4-update-icon-cache
# https://github.com/lainsce/notejot/pull/307
./use-gtk4-update-icon-cache.patch
];
2018-09-08 08:07:55 +00:00
nativeBuildInputs = [
meson
ninja
pkg-config
2018-09-08 08:07:55 +00:00
python3
2021-10-16 02:10:45 +00:00
vala
wrapGAppsHook4
2018-09-08 08:07:55 +00:00
];
2021-10-16 02:10:45 +00:00
2018-09-08 08:07:55 +00:00
buildInputs = [
2021-05-12 12:12:27 +00:00
gtk4
2021-10-16 02:10:45 +00:00
hicolor-icon-theme
2018-09-08 08:07:55 +00:00
json-glib
2021-05-12 12:12:27 +00:00
libadwaita
libgee
2018-09-08 08:07:55 +00:00
];
postPatch = ''
2021-05-12 12:12:27 +00:00
chmod +x build-aux/post_install.py
patchShebangs build-aux/post_install.py
2018-09-08 08:07:55 +00:00
'';
2021-10-16 02:10:45 +00:00
passthru.updateScript = nix-update-script {
attrPath = pname;
};
meta = with lib; {
homepage = "https://github.com/lainsce/notejot";
2021-05-12 12:12:27 +00:00
description = "Stupidly-simple sticky notes applet";
license = licenses.gpl3Plus;
2021-08-02 00:46:24 +00:00
maintainers = with maintainers; [ AndersonTorres ] ++ teams.pantheon.members;
2018-10-31 21:58:23 +00:00
platforms = platforms.linux;
2018-09-08 08:07:55 +00:00
};
}