mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 16:43:58 +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.
58 lines
1.2 KiB
Nix
58 lines
1.2 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, cmake
|
|
, ninja
|
|
, pkg-config
|
|
, zlib
|
|
, xz
|
|
, bzip2
|
|
, zchunk
|
|
, zstd
|
|
, expat
|
|
, withRpm ? !stdenv.hostPlatform.isDarwin
|
|
, rpm
|
|
, db
|
|
, withConda ? true
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "0.7.30";
|
|
pname = "libsolv";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "openSUSE";
|
|
repo = "libsolv";
|
|
rev = version;
|
|
hash = "sha256-De2lQu80MjKvjnN0W3/Y9JwFbA8g7tleflVXC9Lib5Y=";
|
|
};
|
|
|
|
cmakeFlags = [
|
|
"-DENABLE_COMPLEX_DEPS=true"
|
|
(lib.cmakeBool "ENABLE_CONDA" withConda)
|
|
"-DENABLE_LZMA_COMPRESSION=true"
|
|
"-DENABLE_BZIP2_COMPRESSION=true"
|
|
"-DENABLE_ZSTD_COMPRESSION=true"
|
|
"-DENABLE_ZCHUNK_COMPRESSION=true"
|
|
"-DWITH_SYSTEM_ZCHUNK=true"
|
|
] ++ lib.optionals withRpm [
|
|
"-DENABLE_COMPS=true"
|
|
"-DENABLE_PUBKEY=true"
|
|
"-DENABLE_RPMDB=true"
|
|
"-DENABLE_RPMDB_BYRPMHEADER=true"
|
|
"-DENABLE_RPMMD=true"
|
|
];
|
|
|
|
nativeBuildInputs = [ cmake ninja pkg-config ];
|
|
buildInputs = [ zlib xz bzip2 zchunk zstd expat db ]
|
|
++ lib.optional withRpm rpm;
|
|
|
|
meta = with lib; {
|
|
description = "Free package dependency solver";
|
|
homepage = "https://github.com/openSUSE/libsolv";
|
|
license = licenses.bsd3;
|
|
platforms = platforms.linux ++ platforms.darwin;
|
|
maintainers = with maintainers; [ copumpkin ];
|
|
};
|
|
}
|