Files
nixpkgs/pkgs/by-name/ha/hackgregator/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

66 lines
1.4 KiB
Nix

{
lib,
rustPlatform,
fetchFromGitLab,
pkg-config,
wrapGAppsHook4,
libadwaita,
openssl,
webkitgtk_6_0,
sqlite,
glib-networking,
}:
rustPlatform.buildRustPackage {
pname = "hackgregator";
version = "0.5.0-unstable-2023-12-05";
src = fetchFromGitLab {
owner = "gunibert";
repo = "hackgregator";
rev = "594bdcdc3919c7216d611ddbbc77ab4d0c1f4f2b";
hash = "sha256-RE0x4YWquWAcQzxGk9zdNjEp1pijrBtjV1EMBu9c5cs=";
};
cargoHash = "sha256-XI0dpW0BQoTgw7rCNTA3Imo5tU1eMqLvIHyqQD3sC6Q=";
nativeBuildInputs = [
pkg-config
wrapGAppsHook4
];
buildInputs = [
libadwaita
openssl
webkitgtk_6_0
sqlite
glib-networking
];
# 'error[E0432]: unresolved import' when compiling checks
doCheck = false;
postInstall = ''
rm $out/bin/xtask
mkdir -p $out/share
pushd hackgregator/data
cp -r icons $out/share/icons
install -Dm644 de.gunibert.Hackgregator.desktop -t $out/share/applications
install -Dm644 de.gunibert.Hackgregator.appdata.xml -t $out/share/appdata
popd
'';
meta = {
description = "Comfortable GTK reader application for news.ycombinator.com";
homepage = "https://gitlab.com/gunibert/hackgregator";
license = with lib.licenses; [
gpl3Plus
# and
cc0
];
mainProgram = "hackgregator";
maintainers = with lib.maintainers; [ aleksana ];
platforms = lib.platforms.unix;
};
}