forked from TREX-CoE/trexio
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add nix build instructions and README section TREX-CoE#173
- Loading branch information
1 parent
d88358f
commit c776eb4
Showing
6 changed files
with
169 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
description = "TREX I/O library"; | ||
|
||
inputs = { | ||
nixpkgs.url = "github:NixOS/nixpkgs"; | ||
flake-utils.url = "github:numtide/flake-utils"; | ||
}; | ||
|
||
outputs = { self, nixpkgs, flake-utils }: | ||
let overlay = import ./tools/nix/overlay.nix; | ||
in flake-utils.lib.eachDefaultSystem (system: | ||
let | ||
pkgs = import nixpkgs { | ||
inherit system; | ||
overlays = [ overlay ]; | ||
}; | ||
in | ||
{ | ||
packages.default = pkgs.trexio; | ||
} | ||
) // { | ||
overlays.default = overlay; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
final: prev: { | ||
trexio = final.callPackage ./trexio.nix { }; | ||
|
||
haskell = prev.haskell // { | ||
packageOverrides = hfinal: hprev: { | ||
trexio-hs = hfinal.callCabal2nix "trexio" ../haskell { | ||
inherit (final) trexio; | ||
}; | ||
}; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
{ stdenv | ||
, lib | ||
, fetchFromGitHub | ||
, cmake | ||
, gfortran | ||
, hdf5 | ||
, python3 | ||
, emacs | ||
, swig | ||
}: | ||
|
||
stdenv.mkDerivation rec { | ||
pname = "trexio"; | ||
version = "2.5.0"; | ||
|
||
src = lib.cleanSourceWith { | ||
src = ../../.; | ||
filter = path: type: ! (builtins.elem (builtins.baseNameOf path) [ | ||
"haskell" | ||
"docker" | ||
"helpers-debian" | ||
"ocaml" | ||
"rust" | ||
"python" | ||
] && type == "directory" ); | ||
}; | ||
|
||
postPatch = '' | ||
patchShebangs tools/* | ||
''; | ||
|
||
nativeBuildInputs = [ | ||
cmake | ||
gfortran | ||
emacs | ||
swig | ||
python3 | ||
]; | ||
|
||
buildInputs = [ | ||
hdf5 | ||
]; | ||
|
||
outputs = [ "out" "dev" ]; | ||
|
||
doCheck = true; | ||
|
||
meta = with lib; { | ||
description = "File format and library for the storage of quantum chemical wave functions"; | ||
homepage = "https://trex-coe.github.io/trexio/"; | ||
downloadPage = "https://github.com/TREX-CoE/trexio"; | ||
license = licenses.bsd3; | ||
maintainers = [ maintainers.sheepforce ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters