diff options
Diffstat (limited to 'Biz/Dragons/Analysis.nix')
-rw-r--r-- | Biz/Dragons/Analysis.nix | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/Biz/Dragons/Analysis.nix b/Biz/Dragons/Analysis.nix index cd8cd38..0896dbe 100644 --- a/Biz/Dragons/Analysis.nix +++ b/Biz/Dragons/Analysis.nix @@ -1,16 +1,20 @@ { bild ? import ../Bild.nix {} }: +# Run this like so: +# +# bild Biz/Dragons/Analysis.nix +# docker load < _/nix/Biz/Dragons/Analysis.nix +# docker run --volume $PWD:/src dragons-analyze dragons-analyze /src/.git + bild.image { name = "dragons-analyze"; tag = "latest"; - fromImage = null; fromImageName = null; fromImageTag = "latest"; - - contents = bild.ghc ./Analysis.hs; - - config = { - Cmd = [ "/bin/dragons-analyze" ]; - }; + contents = [ + bild.pkgs.git + (bild.ghc ./Analysis.hs) + ]; + config.Cmd = [ "/bin/dragons-analyze" ]; } |