mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
77 lines
1.6 KiB
Nix
77 lines
1.6 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchurl
|
|
, fetchpatch
|
|
, autoreconfHook
|
|
, dbus
|
|
, doxygen
|
|
, fontconfig
|
|
, gettext
|
|
, graphviz
|
|
, help2man
|
|
, pkg-config
|
|
, sqlite
|
|
, tinyxml
|
|
, cppunit
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "presage";
|
|
version = "0.9.1";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/presage/presage/${version}/presage-${version}.tar.gz";
|
|
sha256 = "0rm3b3zaf6bd7hia0lr1wyvi1rrvxkn7hg05r5r1saj0a3ingmay";
|
|
};
|
|
|
|
patches = [
|
|
(fetchpatch {
|
|
name = "gcc6.patch";
|
|
url = "https://git.alpinelinux.org/aports/plain/community/presage/gcc6.patch?id=40e2044c9ecb36eacb3a1fd043f09548d210dc01";
|
|
sha256 = "0243nx1ygggmsly7057vndb4pkjxg9rpay5gyqqrq9jjzjzh63dj";
|
|
})
|
|
./fixed-cppunit-detection.patch
|
|
# fix gcc11 build
|
|
(fetchpatch {
|
|
name = "presage-0.9.1-gcc11.patch";
|
|
url = "https://build.opensuse.org/public/source/openSUSE:Factory/presage/presage-0.9.1-gcc11.patch?rev=3f8b4b19c99276296d6ea595cc6c431f";
|
|
sha256 = "sha256-pLrIFXvJHRvv4x9gBIfal4Y68lByDE3XE2NZNiAXe9k=";
|
|
})
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
autoreconfHook
|
|
doxygen
|
|
fontconfig
|
|
gettext
|
|
graphviz
|
|
help2man
|
|
pkg-config
|
|
];
|
|
|
|
preBuild = ''
|
|
export FONTCONFIG_FILE=${fontconfig.out}/etc/fonts/fonts.conf
|
|
'';
|
|
|
|
buildInputs = [
|
|
dbus
|
|
sqlite
|
|
tinyxml
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
cppunit
|
|
];
|
|
|
|
doCheck = true;
|
|
|
|
checkTarget = "check";
|
|
|
|
meta = with lib; {
|
|
description = "Intelligent predictive text entry system";
|
|
homepage = "https://presage.sourceforge.io/";
|
|
license = licenses.gpl2Plus;
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
};
|
|
}
|