Skip to content

Instantly share code, notes, and snippets.

@worldofgeese
Last active June 6, 2022 14:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save worldofgeese/a185c31f59f217ad91c91ce362ee4b61 to your computer and use it in GitHub Desktop.
Save worldofgeese/a185c31f59f217ad91c91ce362ee4b61 to your computer and use it in GitHub Desktop.
Nix source Dockerfile example
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