Files
nixpkgs/pkgs/by-name/st/sticky/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

82 lines
1.4 KiB
Nix

{
stdenv,
lib,
fetchFromGitHub,
gobject-introspection,
meson,
ninja,
python3,
wrapGAppsHook3,
xapp,
glib,
gspell,
gtk3,
gitUpdater,
}:
stdenv.mkDerivation rec {
pname = "sticky";
version = "1.27";
src = fetchFromGitHub {
owner = "linuxmint";
repo = "sticky";
rev = version;
hash = "sha256-IuYRcvoUyY03aEclkiOmamjb/c/JaYYIoqKdcwDSY8Q=";
};
postPatch = ''
sed -i -e "s|/usr/lib|$out/lib|" usr/bin/sticky
sed -i -e "s|/usr/share|$out/share|" usr/lib/sticky/*.py
'';
nativeBuildInputs = [
gobject-introspection
meson
ninja
python3.pkgs.wrapPython
wrapGAppsHook3
];
buildInputs = [
xapp
glib
gspell
gtk3
python3 # for patchShebangs
];
pythonPath = with python3.pkgs; [
pygobject3
python-xapp
];
dontWrapGApps = true;
preFixup = ''
buildPythonPath "$out $pythonPath"
wrapProgram $out/bin/sticky \
--prefix PYTHONPATH : "$program_PYTHONPATH" \
''${gappsWrapperArgs[@]}
'';
passthru = {
updateScript = gitUpdater {
ignoredVersions = ''master.*'';
};
};
meta = with lib; {
description = "Sticky notes app for the Linux desktop";
mainProgram = "sticky";
homepage = "https://github.com/linuxmint/sticky";
license = licenses.gpl2Only;
platforms = platforms.linux;
maintainers = with maintainers; [
linsui
bobby285271
];
};
}