2024-03-02 22:22:20 +00:00
|
|
|
{ nixpkgs ? import <nixpkgs> {} }:
|
|
|
|
|
|
|
|
let
|
2024-03-23 01:27:12 +00:00
|
|
|
http-conduit = import ./app/Common/nix-support/http-conduit.nix { inherit nixpkgs; };
|
2024-03-31 20:04:15 +00:00
|
|
|
html-parse = import ./nix-support/html-parse.nix { inherit nixpkgs; };
|
2024-03-23 01:27:12 +00:00
|
|
|
|
|
|
|
drv = nixpkgs.haskellPackages.callCabal2nix "chandlr-server" ./. {
|
|
|
|
http-conduit = http-conduit.http-conduit;
|
2024-03-31 20:04:15 +00:00
|
|
|
html-parse = html-parse;
|
2024-03-23 01:27:12 +00:00
|
|
|
};
|
2024-03-02 22:22:20 +00:00
|
|
|
|
|
|
|
env = drv.env.overrideAttrs (oldAttrs: {
|
|
|
|
buildInputs = oldAttrs.buildInputs ++ [
|
|
|
|
nixpkgs.haskellPackages.cabal-install
|
|
|
|
];
|
|
|
|
});
|
|
|
|
|
|
|
|
in
|
|
|
|
|
|
|
|
if nixpkgs.lib.inNixShell then env else drv
|