packages.highfive: init

This commit is contained in:
2024-11-25 01:07:51 +08:00
parent e33609e481
commit 76947a9c96
4 changed files with 29 additions and 0 deletions

19
flake.lock generated
View File

@@ -548,6 +548,24 @@
"type": "github"
}
},
"highfive": {
"flake": false,
"locked": {
"lastModified": 1732469115,
"narHash": "sha256-C9gcLlhDd1iJlkW0DtMOi/4leUfo4Phhi9U+xiH/cQw=",
"ref": "refs/heads/master",
"rev": "7f3c91e9a3eff5856f93e61ff1b61060fcfcc636",
"revCount": 722,
"submodules": true,
"type": "git",
"url": "https://github.com/CHN-beta/HighFive"
},
"original": {
"submodules": true,
"type": "git",
"url": "https://github.com/CHN-beta/HighFive"
}
},
"home-manager": {
"inputs": {
"nixpkgs": [
@@ -1274,6 +1292,7 @@
"git-lfs-transfer": "git-lfs-transfer",
"gricad": "gricad",
"hextra": "hextra",
"highfive": "highfive",
"home-manager": "home-manager",
"impermanence": "impermanence",
"lepton": "lepton",

View File

@@ -70,6 +70,7 @@
spectroscopy = { url = "github:skelton-group/Phonopy-Spectroscopy"; flake = false; };
vaspberry = { url = "github:Infant83/VASPBERRY"; flake = false; };
ufo = { url = "git+https://git.chn.moe/chn/ufo.git"; flake = false; };
highfive = { url = "git+https://github.com/CHN-beta/HighFive?submodules=1"; flake = false; };
};
outputs = inputs: let localLib = import ./flake/lib.nix inputs.nixpkgs.lib; in

View File

@@ -92,6 +92,7 @@ inputs: rec
spectroscopy = inputs.pkgs.callPackage ./spectroscopy.nix { src = inputs.topInputs.spectroscopy; };
mirism = inputs.pkgs.callPackage ./mirism { inherit biu; stdenv = inputs.pkgs.clang18Stdenv; };
vaspberry = inputs.pkgs.callPackage ./vaspberry.nix { src = inputs.topInputs.vaspberry; };
highfive = inputs.pkgs.callPackage ./highfive.nix { src = inputs.topInputs.highfive; };
fromYaml = content: builtins.fromJSON (builtins.readFile
(inputs.pkgs.runCommand "toJSON" {}

8
packages/highfive.nix Normal file
View File

@@ -0,0 +1,8 @@
{ src, stdenv, cmake, hdf5 }: stdenv.mkDerivation
{
name = "highfive";
inherit src;
nativeBuildInputs = [ cmake ];
buildInputs = [ hdf5 ];
doCheck = true;
}