nixpkgs/pkgs/applications/office/abiword/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

64 lines
996 B
Nix
Raw Normal View History

{ lib
, stdenv
, fetchurl
, pkg-config
, gtk3
, fribidi
, libpng
, popt
, libgsf
, enchant
, wv
, librsvg
, bzip2
, libjpeg
, perl
, boost
, libxslt
, goffice
, wrapGAppsHook
}:
stdenv.mkDerivation rec {
pname = "abiword";
2022-01-02 12:01:02 +00:00
version = "3.0.5";
src = fetchurl {
url = "https://www.abisource.com/downloads/abiword/${version}/source/${pname}-${version}.tar.gz";
2022-01-02 12:01:02 +00:00
hash = "sha256-ElckfplwUI1tFFbT4zDNGQnEtCsl4PChvDJSbW86IbQ=";
};
nativeBuildInputs = [
pkg-config
wrapGAppsHook
abiword: fix cross This commit adds `perl` to `nativeBuildInputs` of abiword, to avoid the following build failure: ``` abiword-aarch64-unknown-linux-gnu> checking for perl... no abiword-aarch64-unknown-linux-gnu> configure: error: *** perl program not found error: build of '/nix/store/v670j4pyqk5vy625gh7w0j2jla1wrz2s-abiword-aarch64-unknown-linux-gnu-3.0.5.drv' on 'ssh://root@192.168.22.102' failed: builder for '/nix/store/v670j4pyqk5vy625gh7w0j2jla1wrz2s-abiword-aarch64-unknown-linux-gnu-3.0.5.drv' failed with exit code 1 error: builder for '/nix/store/v670j4pyqk5vy625gh7w0j2jla1wrz2s-abiword-aarch64-unknown-linux-gnu-3.0.5.drv' failed with exit code 1; last 10 log lines: > checking if aarch64-unknown-linux-gnu-g++ -std=c++11 PIC flag -fPIC -DPIC works... yes > checking if aarch64-unknown-linux-gnu-g++ -std=c++11 static flag -static works... no > checking if aarch64-unknown-linux-gnu-g++ -std=c++11 supports -c -o file.o... yes > checking if aarch64-unknown-linux-gnu-g++ -std=c++11 supports -c -o file.o... (cached) yes > checking whether the aarch64-unknown-linux-gnu-g++ -std=c++11 linker (aarch64-unknown-linux-gnu-ld) supports shared libraries... yes > checking dynamic linker characteristics... (cached) GNU/Linux ld.so > checking how to hardcode library paths into programs... immediate > checking whether ln -s works... yes > checking for perl... no > configure: error: *** perl program not found For full logs, run 'nix log /nix/store/v670j4pyqk5vy625gh7w0j2jla1wrz2s-abiword-aarch64-unknown-linux-gnu-3.0.5.drv'. ```
2023-04-17 00:40:56 +00:00
perl
];
2018-03-29 08:25:32 +00:00
buildInputs = [
gtk3
librsvg
bzip2
fribidi
libpng
popt
libgsf
enchant
wv
libjpeg
boost
libxslt
goffice
2018-03-29 08:25:32 +00:00
];
2023-04-18 02:59:00 +00:00
strictDeps = true;
enableParallelBuilding = true;
meta = with lib; {
description = "Word processing program, similar to Microsoft Word";
homepage = "https://www.abisource.com/";
2014-06-23 10:54:46 +00:00
license = licenses.gpl3;
platforms = platforms.linux;
maintainers = with maintainers; [ pSub ylwghst sna ];
};
}