2024-01-13 08:15:51 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
2022-06-16 17:23:12 +00:00
|
|
|
, fetchFromGitHub
|
2024-01-13 08:15:51 +00:00
|
|
|
, gobject-introspection
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, python3
|
2024-05-15 15:35:15 +00:00
|
|
|
, wrapGAppsHook3
|
2024-07-27 06:49:29 +00:00
|
|
|
, xapp
|
2022-06-16 17:23:12 +00:00
|
|
|
, glib
|
|
|
|
, gspell
|
|
|
|
, gtk3
|
2022-09-11 15:47:08 +00:00
|
|
|
, gitUpdater
|
2022-06-16 17:23:12 +00:00
|
|
|
}:
|
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2022-06-16 17:23:12 +00:00
|
|
|
pname = "sticky";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "1.22";
|
2022-06-16 17:23:12 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "linuxmint";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-JrzBME1d4qvGjF2zdiqCX7h+sFadLsRQqZKnQj7elHs=";
|
2022-06-16 17:23:12 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
2024-01-13 08:15:51 +00:00
|
|
|
sed -i -e "s|/usr/lib|$out/lib|" usr/bin/sticky
|
2022-06-16 17:23:12 +00:00
|
|
|
sed -i -e "s|/usr/share|$out/share|" usr/lib/sticky/*.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
gobject-introspection
|
2024-01-13 08:15:51 +00:00
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
python3.pkgs.wrapPython
|
2024-05-15 15:35:15 +00:00
|
|
|
wrapGAppsHook3
|
2022-06-16 17:23:12 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2024-07-27 06:49:29 +00:00
|
|
|
xapp
|
2024-01-13 08:15:51 +00:00
|
|
|
glib
|
2022-06-16 17:23:12 +00:00
|
|
|
gspell
|
2024-01-13 08:15:51 +00:00
|
|
|
gtk3
|
|
|
|
python3 # for patchShebangs
|
2022-06-16 17:23:12 +00:00
|
|
|
];
|
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
pythonPath = with python3.pkgs; [
|
2022-06-16 17:23:12 +00:00
|
|
|
pygobject3
|
2024-07-27 06:49:29 +00:00
|
|
|
python-xapp
|
2022-06-16 17:23:12 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
dontWrapGApps = true;
|
|
|
|
|
|
|
|
preFixup = ''
|
2024-01-13 08:15:51 +00:00
|
|
|
buildPythonPath "$out $pythonPath"
|
|
|
|
|
|
|
|
wrapProgram $out/bin/sticky \
|
|
|
|
--prefix PYTHONPATH : "$program_PYTHONPATH" \
|
|
|
|
''${gappsWrapperArgs[@]}
|
2022-06-16 17:23:12 +00:00
|
|
|
'';
|
|
|
|
|
2022-09-11 15:47:08 +00:00
|
|
|
passthru = {
|
|
|
|
updateScript = gitUpdater {
|
|
|
|
ignoredVersions = ''master.*'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Sticky notes app for the linux desktop";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "sticky";
|
2022-06-16 17:23:12 +00:00
|
|
|
homepage = "https://github.com/linuxmint/sticky";
|
|
|
|
license = licenses.gpl2Only;
|
|
|
|
platforms = platforms.linux;
|
2022-11-02 22:02:43 +00:00
|
|
|
maintainers = with maintainers; [ linsui bobby285271 ];
|
2022-06-16 17:23:12 +00:00
|
|
|
};
|
|
|
|
}
|