localPackages.openxlsx: init

This commit is contained in:
2024-05-04 17:46:14 +08:00
parent 139405b891
commit 5255cb2845
4 changed files with 30 additions and 0 deletions

17
flake.lock generated
View File

@@ -1957,6 +1957,22 @@
"type": "github"
}
},
"openxlsx": {
"flake": false,
"locked": {
"lastModified": 1656848604,
"narHash": "sha256-Bdik5tY6DsNKMMXvfVOHngLHud3OJ8q9OTwv4eaDMvY=",
"owner": "troldal",
"repo": "OpenXLSX",
"rev": "b80da42d1454f361c29117095ebe1989437db390",
"type": "github"
},
"original": {
"owner": "troldal",
"repo": "OpenXLSX",
"type": "github"
}
},
"org": {
"flake": false,
"locked": {
@@ -2233,6 +2249,7 @@
"nur": "nur",
"nur-linyinfeng": "nur-linyinfeng",
"nur-xddxdd": "nur-xddxdd",
"openxlsx": "openxlsx",
"plasma-manager": "plasma-manager",
"pnpm2nix-nzbr": "pnpm2nix-nzbr",
"qchem": "qchem",

View File

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

View File

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

View File

@@ -0,0 +1,11 @@
{ stdenv, src, cmake, pkg-config }: stdenv.mkDerivation
{
name = "openxlsx";
inherit src;
nativeBuildInputs = [ cmake pkg-config ];
cmakeFlags =
[
"-DOPENXLSX_CREATE_DOCS=OFF" "-DOPENXLSX_BUILD_SAMPLES=OFF" "-DOPENXLSX_BUILD_TESTS=OFF"
"-DOPENXLSX_BUILD_BENCHMARKS=OFF"
];
}