mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
newsraft: 0.30 -> 0.31; newsraft: refactor (#415045)
This commit is contained in:
commit
d94d96be2e
1 changed files with 6 additions and 8 deletions
|
@ -6,21 +6,20 @@
|
|||
curl,
|
||||
expat,
|
||||
gumbo,
|
||||
ncurses,
|
||||
sqlite,
|
||||
nix-update-script,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "newsraft";
|
||||
version = "0.30";
|
||||
version = "0.31";
|
||||
|
||||
src = fetchFromGitea {
|
||||
domain = "codeberg.org";
|
||||
owner = "newsraft";
|
||||
repo = "newsraft";
|
||||
rev = "newsraft-${finalAttrs.version}";
|
||||
hash = "sha256-h9gjw2EjWWNdyQT2p4wgWlz4TNitDBX5fPbNNH9/th4=";
|
||||
hash = "sha256-XnVGt9frUKeAjxYk2cr3q3a5HpqVH0CHnNiKdTTBnqA=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
|
@ -28,21 +27,20 @@ stdenv.mkDerivation (finalAttrs: {
|
|||
curl
|
||||
expat
|
||||
gumbo
|
||||
ncurses
|
||||
sqlite
|
||||
];
|
||||
|
||||
makeFlags = [ "PREFIX=$(out)" ];
|
||||
installTargets = "install install-desktop";
|
||||
|
||||
postInstall = lib.optionalString (!stdenv.hostPlatform.isDarwin) ''
|
||||
install -Dm444 doc/newsraft.desktop -t $out/share/applications
|
||||
'';
|
||||
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.hostPlatform.isDarwin "-D_DARWIN_C_SOURCE";
|
||||
|
||||
passthru.updateScript = nix-update-script { };
|
||||
|
||||
meta = {
|
||||
description = "Feed reader for terminal";
|
||||
homepage = "https://codeberg.org/grisha/newsraft";
|
||||
homepage = "https://codeberg.org/newsraft/newsraft";
|
||||
changelog = "https://codeberg.org/newsraft/newsraft/releases/tag/newsraft-${finalAttrs.version}";
|
||||
license = lib.licenses.isc;
|
||||
maintainers = with lib.maintainers; [
|
||||
arthsmn
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue