Revert "localPackages.json2cpp: init"

This reverts commit cc303a082c.
This commit is contained in:
2024-06-08 19:28:35 +08:00
parent cc303a082c
commit 64532717da
4 changed files with 0 additions and 33 deletions

17
flake.lock generated
View File

@@ -1003,22 +1003,6 @@
"type": "github"
}
},
"json2cpp": {
"flake": false,
"locked": {
"lastModified": 1717845292,
"narHash": "sha256-mxS6UwDzzM3ids+p8Ht8AgvDi7/GhFIND3pV/QffGKc=",
"owner": "CHN-beta",
"repo": "json2cpp",
"rev": "ea1f3bc37aae628124c404898f2fc23f1801bde5",
"type": "github"
},
"original": {
"owner": "CHN-beta",
"repo": "json2cpp",
"type": "github"
}
},
"jujutsu": {
"inputs": {
"flake-utils": [
@@ -1961,7 +1945,6 @@
"gricad": "gricad",
"home-manager": "home-manager",
"impermanence": "impermanence",
"json2cpp": "json2cpp",
"kylin-virtual-keyboard": "kylin-virtual-keyboard",
"lepton": "lepton",
"linux-surface": "linux-surface",

View File

@@ -68,7 +68,6 @@
zxorm = { url = "github:CHN-beta/zxorm"; flake = false; };
openxlsx = { url = "github:troldal/OpenXLSX"; flake = false; };
sqlite-orm = { url = "github:fnc12/sqlite_orm"; flake = false; };
json2cpp = { url = "github:CHN-beta/json2cpp"; flake = false; };
# does not support lfs yet
# nixos-wallpaper = { url = "git+https://git.chn.moe/chn/nixos-wallpaper.git"; flake = false; };

View File

@@ -79,7 +79,6 @@ inputs: rec
mkPnpmPackage = inputs.pkgs.callPackage ./mkPnpmPackage.nix {};
nodejs-with-pnpm9 = inputs.pkgs.callPackage ./nodejs-with-pnpm9.nix {};
sbatch-cli = inputs.pkgs.callPackage ./sbatch-cli {};
json2cpp = inputs.pkgs.callPackage ./json2cpp.nix { src = inputs.topInputs.json2cpp; fmt = inputs.pkgs.fmt_9; };
fromYaml = content: builtins.fromJSON (builtins.readFile
(inputs.pkgs.runCommand "toJSON" {}

View File

@@ -1,14 +0,0 @@
{ stdenv, cmake, pkg-config, src, cpm-cmake, fmt, spdlog, catch2_3, cli11, ftxui, nlohmann_json, valijson }:
stdenv.mkDerivation
{
name = "json2cpp";
inherit src;
buildInputs = [ fmt spdlog catch2_3 cli11 ftxui nlohmann_json nlohmann_json valijson ];
nativeBuildInputs = [ cmake pkg-config cpm-cmake ];
preConfigure =
''
mkdir -p ${placeholder "out"}/share/cpm
cp ${cpm-cmake}/share/cpm/CPM.cmake ${placeholder "out"}/share/cpm/CPM_0.38.1.cmake
'';
cmakeFlags = [ "-DCPM_USE_LOCAL_PACKAGES=1" "-DCPM_SOURCE_CACHE=${placeholder "out"}/share" ];
}