mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 03:23:29 +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,
|
curl,
|
||||||
expat,
|
expat,
|
||||||
gumbo,
|
gumbo,
|
||||||
ncurses,
|
|
||||||
sqlite,
|
sqlite,
|
||||||
nix-update-script,
|
nix-update-script,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation (finalAttrs: {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "newsraft";
|
pname = "newsraft";
|
||||||
version = "0.30";
|
version = "0.31";
|
||||||
|
|
||||||
src = fetchFromGitea {
|
src = fetchFromGitea {
|
||||||
domain = "codeberg.org";
|
domain = "codeberg.org";
|
||||||
owner = "newsraft";
|
owner = "newsraft";
|
||||||
repo = "newsraft";
|
repo = "newsraft";
|
||||||
rev = "newsraft-${finalAttrs.version}";
|
rev = "newsraft-${finalAttrs.version}";
|
||||||
hash = "sha256-h9gjw2EjWWNdyQT2p4wgWlz4TNitDBX5fPbNNH9/th4=";
|
hash = "sha256-XnVGt9frUKeAjxYk2cr3q3a5HpqVH0CHnNiKdTTBnqA=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config ];
|
nativeBuildInputs = [ pkg-config ];
|
||||||
|
@ -28,21 +27,20 @@ stdenv.mkDerivation (finalAttrs: {
|
||||||
curl
|
curl
|
||||||
expat
|
expat
|
||||||
gumbo
|
gumbo
|
||||||
ncurses
|
|
||||||
sqlite
|
sqlite
|
||||||
];
|
];
|
||||||
|
|
||||||
makeFlags = [ "PREFIX=$(out)" ];
|
makeFlags = [ "PREFIX=$(out)" ];
|
||||||
|
installTargets = "install install-desktop";
|
||||||
|
|
||||||
postInstall = lib.optionalString (!stdenv.hostPlatform.isDarwin) ''
|
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.hostPlatform.isDarwin "-D_DARWIN_C_SOURCE";
|
||||||
install -Dm444 doc/newsraft.desktop -t $out/share/applications
|
|
||||||
'';
|
|
||||||
|
|
||||||
passthru.updateScript = nix-update-script { };
|
passthru.updateScript = nix-update-script { };
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Feed reader for terminal";
|
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;
|
license = lib.licenses.isc;
|
||||||
maintainers = with lib.maintainers; [
|
maintainers = with lib.maintainers; [
|
||||||
arthsmn
|
arthsmn
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue