depot/third_party/nixpkgs/pkgs/by-name/ha/hackgregator/package.nix

66 lines
1.4 KiB
Nix
Raw Normal View History

{
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-OPlYFUhAFRHqXS2vad0QYlhcwyyxdxi1kjpTxVlgyxs=";
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;
};
}