nixpkgs/pkgs/by-name/xq/xqilla/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
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.
2024-11-09 20:04:51 +08:00

41 lines
1.2 KiB
Nix

{ lib, stdenv, fetchurl, fetchpatch, darwin, xercesc }:
stdenv.mkDerivation rec {
pname = "xqilla";
version = "2.3.4";
src = fetchurl {
url = "mirror://sourceforge/xqilla/XQilla-${version}.tar.gz";
sha256 = "0m9z7diw7pdyb4qycbqyr2x55s13v8310xsi7yz0inpw27q4vzdd";
};
patches = [
(fetchpatch {
name = "xqilla-gcc11.patch";
url = "https://git.pld-linux.org/gitweb.cgi?p=packages/xqilla.git;a=blob_plain;f=xqilla-gcc11.patch;h=c9e28be64097040348f710cb27be5f7dad001112;hb=4efe07397c6fb426a65b2eec6999d3c7e683848a";
hash = "sha256-enMEF3U+PsbwOQ5SwlRVWc/FpyLS3aK6JgUgOp3ZbiA=";
})
];
configureFlags = [
"--with-xerces=${xercesc}"
# code uses register storage specifier
"CXXFLAGS=-std=c++14"
];
buildInputs = [
xercesc
] ++ lib.optionals stdenv.hostPlatform.isDarwin (with darwin.apple_sdk.frameworks; [
CoreServices
SystemConfiguration
]);
meta = with lib; {
description = "XQuery and XPath 2 library and command line utility written in C++, implemented on top of the Xerces-C library";
mainProgram = "xqilla";
license = licenses.asl20 ;
maintainers = with maintainers; [ obadz ];
platforms = platforms.all;
};
}