Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 67 lines 1.1 kB view raw
1{ 2 fetchFromGitHub, 3 lib, 4 stdenv, 5 cmake, 6 fmt, 7 spdlog, 8 tl-expected, 9 nlohmann_json, 10 yaml-cpp, 11 simdjson, 12 reproc, 13 libsolv, 14 curl, 15 libarchive, 16 zstd, 17 nix-update-script, 18 bzip2, 19 python3, 20}: 21 22stdenv.mkDerivation (finalAttrs: { 23 pname = "libmamba"; 24 version = "2.1.1"; 25 26 src = fetchFromGitHub { 27 owner = "mamba-org"; 28 repo = "mamba"; 29 tag = finalAttrs.version; 30 hash = "sha256-JBwdfYM7J5R7HZyw5kVXwu4FlZUd2QPrsTaGuXnyAJI="; 31 }; 32 33 nativeBuildInputs = [ 34 cmake 35 python3 36 ]; 37 38 buildInputs = [ 39 fmt 40 spdlog 41 tl-expected 42 nlohmann_json 43 yaml-cpp 44 simdjson 45 reproc 46 libsolv 47 curl 48 libarchive 49 zstd 50 bzip2 51 ]; 52 53 cmakeFlags = [ 54 (lib.cmakeBool "BUILD_LIBMAMBA" true) 55 (lib.cmakeBool "BUILD_SHARED" true) 56 ]; 57 58 passthru.updateScript = nix-update-script { }; 59 60 meta = { 61 description = "Library for the fast Cross-Platform Package Manager"; 62 homepage = "https://github.com/mamba-org/mamba"; 63 license = lib.licenses.bsd3; 64 platforms = lib.platforms.all; 65 maintainers = [ lib.maintainers.ericthemagician ]; 66 }; 67})