-
-
Notifications
You must be signed in to change notification settings - Fork 414
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build servant repo with nix. (#1288)
- Loading branch information
Showing
3 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
with (builtins.fromJSON (builtins.readFile ./nix/nixpkgs.json)); | ||
{ | ||
pkgs ? import (builtins.fetchTarball { | ||
url = "https://github.com/NixOS/nixpkgs/archive/${rev}.tar.gz"; | ||
inherit sha256; | ||
}) {} | ||
, compiler ? "ghc883" | ||
}: | ||
let | ||
overrides = self: super: { | ||
servant = self.callCabal2nix "servant" ./servant {}; | ||
servant-docs = self.callCabal2nix "servant-docs" ./servant-docs {}; | ||
servant-pipes = self.callCabal2nix "servant-pipes" ./servant-pipes {}; | ||
servant-server = self.callCabal2nix "servant-server" ./servant-server {}; | ||
servant-client = self.callCabal2nix "servant-client" ./servant-client {}; | ||
servant-foreign = self.callCabal2nix "servant-foreign" ./servant-foreign {}; | ||
servant-conduit = self.callCabal2nix "servant-conduit" ./servant-conduit {}; | ||
servant-machines = self.callCabal2nix "servant-machines" ./servant-machines {}; | ||
servant-client-core = self.callCabal2nix "servant-client-core" ./servant-client-core {}; | ||
servant-http-streams = self.callCabal2nix "servant-http-streams" ./servant-http-streams {}; | ||
}; | ||
hPkgs = pkgs.haskell.packages.${compiler}.override { inherit overrides; }; | ||
in | ||
with hPkgs; | ||
{ | ||
inherit | ||
servant | ||
servant-client | ||
servant-client-core | ||
servant-conduit | ||
servant-docs | ||
servant-foreign | ||
servant-http-streams | ||
servant-machines | ||
servant-pipes | ||
servant-server; | ||
} | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"rev" : "05f0934825c2a0750d4888c4735f9420c906b388", | ||
"sha256" : "1g8c2w0661qn89ajp44znmwfmghbbiygvdzq0rzlvlpdiz28v6gy" | ||
} |