blob: 27b7d06343bb24557b83465de4667f3536c3495a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
{ nixpkgs ? import <nixpkgs> {}, compiler ? "default" }:
let
inherit (nixpkgs) pkgs;
haskellPackages = if compiler == "default"
then pkgs.haskellPackages
else pkgs.haskell.packages.${compiler};
drv = haskellPackages.callPackage ./postdelay.nix {};
in
pkgs.stdenv.lib.overrideDerivation drv.env (oldAttrs: {
buildInputs = oldAttrs.buildInputs ++ (with pkgs; [ cabal2nix gup ]);
shellHook = ''
${oldAttrs.shellHook}
export PROMPT_INFO="${oldAttrs.name}"
'';
})
|