
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.
56 lines
1.0 KiB
Nix
56 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitea,
|
|
cmake,
|
|
pkg-config,
|
|
curl,
|
|
libunistring,
|
|
openssl,
|
|
pcre,
|
|
zlib,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "the-foundation";
|
|
version = "1.9.0";
|
|
|
|
src = fetchFromGitea {
|
|
domain = "git.skyjake.fi";
|
|
owner = "skyjake";
|
|
repo = "the_Foundation";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-hrwnY8m4xW8Sr2RunwD5VB+gnYUtZxXyGoiO3N23qGM=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
curl
|
|
libunistring
|
|
openssl
|
|
pcre
|
|
zlib
|
|
];
|
|
|
|
cmakeFlags = [
|
|
(lib.cmakeFeature "UNISTRING_DIR" "${libunistring}")
|
|
];
|
|
|
|
postFixup = ''
|
|
substituteInPlace "$out"/lib/pkgconfig/the_Foundation.pc \
|
|
--replace '="''${prefix}//' '="/'
|
|
'';
|
|
|
|
meta = {
|
|
description = "Opinionated C11 library for low-level functionality";
|
|
homepage = "https://git.skyjake.fi/skyjake/the_Foundation";
|
|
license = lib.licenses.bsd2;
|
|
maintainers = with lib.maintainers; [ sikmir ];
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
})
|