Last active
June 6, 2022 14:15
-
-
Save worldofgeese/a185c31f59f217ad91c91ce362ee4b61 to your computer and use it in GitHub Desktop.
Nix source Dockerfile example
This file contains hidden or 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
FROM nixos/nix as builder | |
WORKDIR /app | |
ENV NIXPKGS_ALLOW_UNFREE=1 | |
RUN nix-env -iA nixpkgs.gitMinimal | |
RUN git clone https://gitlab.com/theoretical-chemistry-jena/nixwithchemistry \ | |
$HOME/.config/nixpkgs/overlays/nixwithchemistry | |
RUN nix-channel --update | |
RUN nix-build \ | |
-E 'import <nixpkgs> { nixpkgs-overlays=[ (fetchTarball https://gitlab.com/theoretical-chemistry-jena/nixwithchemistry/-/archive/master/nixwithchemistry-master.tar.gz) ]; }' \ | |
-A nwchem |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment