on master help sign in
add simple docker.nix
7d3b924A.M
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
89 sha256 = "085j4yjr8wimxampxqdrg47p577whwg2mjxgfdl44yfck52fb6an";
89 sha256 = "085j4yjr8wimxampxqdrg47p577whwg2mjxgfdl44yfck52fb6an";
90 }{};
90 }{};
91
91
92− project-m36 = self.callCabal2nixWithOptions "project-m36" ./. "-f-haskell-scripting" { };
92+ project-m36 = dontCheck (self.callCabal2nixWithOptions "project-m36" ./. "-f-haskell-scripting" { });
93
93
94 };
94 };
95 };
95 };
@@ -103,9 +103,10 @@ in
103 packages = p: with p; [
103 packages = p: with p; [
104 project
104 project
105 ];
105 ];
106− buildInputs = with haskellPackages; [
106+ buildInputs = [
107− ghcid
107+ haskellPackages.ghcid
108− hlint # or ormolu
108+ haskellPackages.hlint
109+ pkgs.docker
109 ];
110 ];
110 withHoogle = true;
111 withHoogle = true;
111 };
112 };