mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
hackgregator: init at 0.5.0-unstable-2023-12-05
This commit is contained in:
parent
cda49c202f
commit
29a684b0a0
65
pkgs/by-name/ha/hackgregator/package.nix
Normal file
65
pkgs/by-name/ha/hackgregator/package.nix
Normal file
@ -0,0 +1,65 @@
|
||||
{
|
||||
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;
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user