localPackages.sqlite-orm: init

This commit is contained in:
2024-05-05 13:05:20 +08:00
parent 4c5e3f696c
commit 30415da2d1
4 changed files with 26 additions and 0 deletions

17
flake.lock generated
View File

@@ -2240,6 +2240,7 @@
"rycee": "rycee",
"slate": "slate",
"sops-nix": "sops-nix",
"sqlite-orm": "sqlite-orm",
"tgbot-cpp": "tgbot-cpp",
"v-sim": "v-sim",
"win11os-kde": "win11os-kde",
@@ -2435,6 +2436,22 @@
"type": "github"
}
},
"sqlite-orm": {
"flake": false,
"locked": {
"lastModified": 1679666045,
"narHash": "sha256-KqphGFcnR1Y11KqL7sxODSv7lEvcURdF6kLd3cg84kc=",
"owner": "fnc12",
"repo": "sqlite_orm",
"rev": "ff7c878af872f7987b62d825284fb25d6043af10",
"type": "github"
},
"original": {
"owner": "fnc12",
"repo": "sqlite_orm",
"type": "github"
}
},
"systems": {
"locked": {
"lastModified": 1689347949,

View File

@@ -81,6 +81,7 @@
zxorm = { url = "github:CHN-beta/zxorm"; flake = false; };
xmuhpc-dotfiles = { url = "git+https://git.chn.moe/chn/xmuhpc-dotfiles.git"; flake = false; };
openxlsx = { url = "github:troldal/OpenXLSX"; flake = false; };
sqlite-orm = { url = "github:fnc12/sqlite_orm"; flake = false; };
};
outputs = inputs:

View File

@@ -87,6 +87,7 @@ inputs: rec
zxorm = inputs.pkgs.callPackage ./zxorm { src = inputs.topInputs.zxorm; };
hpcstat = inputs.pkgs.callPackage ./hpcstat { inherit nameof zxorm zpp-bits; };
openxlsx = inputs.pkgs.callPackage ./openxlsx { src = inputs.topInputs.openxlsx; };
sqlite-orm = inputs.pkgs.callPackage ./sqlite-orm { src = inputs.topInputs.sqlite-orm; };
fromYaml = content: builtins.fromJSON (builtins.readFile
(inputs.pkgs.runCommand "toJSON" {}

View File

@@ -0,0 +1,7 @@
{ stdenv, src, cmake, pkg-config, sqlite }: stdenv.mkDerivation
{
name = "sqlite-orm";
inherit src;
nativeBuildInputs = [ cmake pkg-config ];
buildInputs = [ sqlite ];
}