mirror of
https://github.com/CHN-beta/nixos.git
synced 2026-01-11 16:49:22 +08:00
packages.chn-bsub: fix, install on wlin
This commit is contained in:
9
devices/wlin/bsub.nix
Normal file
9
devices/wlin/bsub.nix
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
normal = [ 4 4 20 ];
|
||||
normal_1day = [ 4 7 28 ];
|
||||
normal_1week = [ 4 7 28 ];
|
||||
normal_2week = [ 6 8 48 ];
|
||||
normal_1day_new = [ 4 6 24 ];
|
||||
ocean_530_1day = [ 4 6 24 ];
|
||||
ocean6226R_1day = [ 4 8 32 ];
|
||||
}
|
||||
@@ -9,10 +9,13 @@ let
|
||||
nixpkgs = { march = "haswell"; nixRoot = "/data/gpfs01/wlin/.nix"; nixos = false; };
|
||||
});
|
||||
python = pkgs.python3.withPackages (ps: with ps; [ phonopy ]);
|
||||
chn-bsub = pkgs.localPackages.chn-bsub.overrideAttrs
|
||||
(prev: { bsubConfig = builtins.toFile "bsub.yaml" (builtins.toJSON (import ./bsub.nix)); });
|
||||
wlin = pkgs.symlinkJoin
|
||||
{
|
||||
name = "wlin";
|
||||
paths = with pkgs; [ gnuplot localPackages.vaspkit pv python localPackages.vasp.intel ];
|
||||
paths = with pkgs;
|
||||
[ gnuplot localPackages.vaspkit pv python localPackages.vasp.intel chn-bsub hwloc ];
|
||||
postBuild = "echo ${inputs.self.rev or "dirty"} > $out/.version";
|
||||
passthru = { inherit pkgs; archive = pkgs.closureInfo { rootPaths = [ wlin.drvPath ]; }; };
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user