on master help sign in
add simple docker.nix
commit7d3b9245c081ec739f0c8ee3a62a7022d44ccd23 authorA.M <agentm@themactionfaction.com> dateFri 31 Jul 2020, 01:07 (6 years ago) parent7d5354c
2 files changed+15−4
docker.nix+10 release.nix+5−4
docker.nixnew file+10
@@ -0,0 +1,10 @@
1+{ pkgs ? import ./pkgs.nix }:
2+let
3+ release = import ./release.nix { inherit pkgs; };
4+ static-project-m36 = pkgs.haskell.lib.justStaticExecutables release.project;
5+in
6+ pkgs.dockerTools.buildImage {
7+ name = "project-m36";
8+ contents = [static-project-m36];
9+ config = { Env = ["LC_ALL=en_US.UTF-8"]; };
10+ }
release.nix+5−4
@@ -89,7 +89,7 @@ let
8989 sha256 = "085j4yjr8wimxampxqdrg47p577whwg2mjxgfdl44yfck52fb6an";
9090 }{};
9191
92− project-m36 = self.callCabal2nixWithOptions "project-m36" ./. "-f-haskell-scripting" { };
92+ project-m36 = dontCheck (self.callCabal2nixWithOptions "project-m36" ./. "-f-haskell-scripting" { });
9393
9494 };
9595 };
@@ -103,9 +103,10 @@ in
103103 packages = p: with p; [
104104 project
105105 ];
106− buildInputs = with haskellPackages; [
107− ghcid
108− hlint # or ormolu
106+ buildInputs = [
107+ haskellPackages.ghcid
108+ haskellPackages.hlint
109+ pkgs.docker
109110 ];
110111 withHoogle = true;
111112 };