mirror of
https://github.com/CHN-beta/nixos.git
synced 2026-01-12 04:39:23 +08:00
17
flake.lock
generated
17
flake.lock
generated
@@ -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",
|
||||
|
||||
@@ -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; };
|
||||
|
||||
@@ -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" {}
|
||||
|
||||
@@ -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" ];
|
||||
}
|
||||
Reference in New Issue
Block a user