mirror of
https://github.com/CHN-beta/nixos.git
synced 2026-01-12 04:19:22 +08:00
Compare commits
1 Commits
staging
...
wannier-to
| Author | SHA1 | Date | |
|---|---|---|---|
| 29a4a019cf |
17
flake.lock
generated
17
flake.lock
generated
@@ -1312,6 +1312,7 @@
|
||||
"ufo": "ufo",
|
||||
"v-sim": "v-sim",
|
||||
"vaspberry": "vaspberry",
|
||||
"wannier-tools": "wannier-tools",
|
||||
"winapps": "winapps",
|
||||
"zpp-bits": "zpp-bits"
|
||||
}
|
||||
@@ -1675,6 +1676,22 @@
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"wannier-tools": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1747722126,
|
||||
"narHash": "sha256-cat1Mjlp7euxt4zaNOsBOVVbMmb+e+4iHdDUeU7PdSw=",
|
||||
"owner": "CHN-beta",
|
||||
"repo": "wannier_tools",
|
||||
"rev": "303cab6a49baf0783e77a6d78647123d43dd12e3",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "CHN-beta",
|
||||
"repo": "wannier_tools",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"winapps": {
|
||||
"inputs": {
|
||||
"flake-compat": "flake-compat_5",
|
||||
|
||||
@@ -75,6 +75,7 @@
|
||||
fancy-motd = { url = "github:CHN-beta/fancy-motd"; flake = false; };
|
||||
mac-style = { url = "github:SergioRibera/s4rchiso-plymouth-theme?lfs=1"; flake = false; };
|
||||
phono3py = { url = "github:phonopy/phono3py"; flake = false; };
|
||||
wannier-tools = { url = "github:CHN-beta/wannier_tools"; flake = false; };
|
||||
};
|
||||
|
||||
outputs = inputs: let localLib = import ./flake/lib.nix inputs.nixpkgs.lib; in
|
||||
|
||||
@@ -131,6 +131,7 @@ inputs: rec
|
||||
{
|
||||
stdenv = inputs.pkgs.callPackage ./oneapi/stdenv.nix { src = inputs.topInputs.self.src.oneapi; };
|
||||
};
|
||||
wannier-tools = inputs.pkgs.callPackage ./wannier-tools.nix { src = inputs.topInputs.wannier-tools; };
|
||||
|
||||
fromYaml = content: builtins.fromJSON (builtins.readFile
|
||||
(inputs.pkgs.runCommand "toJSON" {}
|
||||
|
||||
9
packages/wannier-tools.nix
Normal file
9
packages/wannier-tools.nix
Normal file
@@ -0,0 +1,9 @@
|
||||
{ stdenv, src, gfortran, lapack }: stdenv.mkDerivation
|
||||
{
|
||||
name = "wannier-tools";
|
||||
inherit src;
|
||||
nativeBuildInputs = [ gfortran ];
|
||||
buildInputs = [ lapack ];
|
||||
buildPhase = "cd src; cp Makefile.gfortran Makefile; make";
|
||||
installPhase = "mkdir -p $out/bin && cp wt.x $out/bin";
|
||||
}
|
||||
Reference in New Issue
Block a user