abiword: switch to a live source (#349347)

This commit is contained in:
Aleksana 2024-10-23 16:51:34 +08:00 committed by GitHub
commit 285b9e7e81
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,7 +1,9 @@
{ lib { lib
, stdenv , stdenv
, fetchurl , fetchFromGitLab
, fetchpatch , fetchpatch
, autoreconfHook269
, autoconf-archive
, pkg-config , pkg-config
, gtk3 , gtk3
, fribidi , fribidi
@ -24,9 +26,12 @@ stdenv.mkDerivation rec {
pname = "abiword"; pname = "abiword";
version = "3.0.5"; version = "3.0.5";
src = fetchurl { src = fetchFromGitLab {
url = "https://www.abisource.com/downloads/abiword/${version}/source/${pname}-${version}.tar.gz"; domain = "gitlab.gnome.org";
hash = "sha256-ElckfplwUI1tFFbT4zDNGQnEtCsl4PChvDJSbW86IbQ="; owner = "World";
repo = "AbiWord";
rev = "refs/tags/release-${version}";
hash = "sha256-Z55qPm4MYwbG8bvXpX2TH8bxQaJjvb3Em1ymM1XwGqo=";
}; };
patches = [ patches = [
@ -38,6 +43,8 @@ stdenv.mkDerivation rec {
]; ];
nativeBuildInputs = [ nativeBuildInputs = [
autoreconfHook269
autoconf-archive
pkg-config pkg-config
wrapGAppsHook3 wrapGAppsHook3
perl perl
@ -62,10 +69,18 @@ stdenv.mkDerivation rec {
strictDeps = true; strictDeps = true;
enableParallelBuilding = true; enableParallelBuilding = true;
postPatch = ''
patchShebangs ./tools/cdump/xp/cdump.pl ./po/ui-backport.pl
'';
preAutoreconf = ''
./autogen-common.sh
'';
meta = with lib; { meta = with lib; {
description = "Word processing program, similar to Microsoft Word"; description = "Word processing program, similar to Microsoft Word";
mainProgram = "abiword"; mainProgram = "abiword";
homepage = "https://www.abisource.com/"; homepage = "https://gitlab.gnome.org/World/AbiWord/";
license = licenses.gpl3; license = licenses.gpl3;
platforms = platforms.linux; platforms = platforms.linux;
maintainers = with maintainers; [ pSub ylwghst sna ]; maintainers = with maintainers; [ pSub ylwghst sna ];