Last active
August 29, 2015 14:27
-
-
Save bennofs/6aaf3b8738da42e7cefa to your computer and use it in GitHub Desktop.
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
$ nix-instantiate haskell-rethinkdb.nix --indirect --add-root $PWD/shell.drv --show-trace |
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
{ mkDerivation, aeson, attoparsec, base, base64-bytestring, binary | |
, bytestring, containers, data-default, doctest, mtl, network | |
, scientific, stdenv, text, time, unordered-containers, utf8-string | |
, vector | |
}: | |
mkDerivation { | |
pname = "rethinkdb"; | |
version = "2.0.0.0"; | |
src = ./.; | |
isLibrary = true; | |
isExecutable = true; | |
libraryHaskellDepends = [ | |
aeson base base64-bytestring binary bytestring containers | |
data-default mtl network scientific text time unordered-containers | |
utf8-string vector | |
]; | |
executableHaskellDepends = [ attoparsec base text ]; | |
testHaskellDepends = [ base doctest ]; | |
homepage = "http://github.com/atnnn/haskell-rethinkdb"; | |
description = "A driver for RethinkDB 2.0"; | |
license = stdenv.lib.licenses.asl20; | |
} |
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
let | |
pkgs = import <nixpkgs> {}; | |
stdenv = pkgs.stdenv; | |
haskellPackages = pkgs.haskellPackages.override { | |
overrides = self: super: { | |
haskell-rethinkdb = pkgs.haskell.lib.dontCheck (self.callPackage ./default.nix {}); | |
}; | |
}; | |
inputs = [ | |
haskellPackages.ghc-mod | |
haskellPackages.cabal-install | |
]; | |
in rec { | |
haskellRethinkDBEnv = stdenv.lib.overrideDerivation haskellPackages.haskell-rethinkdb.env (old: { | |
name = "haskell-rethinkdb-env"; | |
# Append our inputs to the old build inputs | |
buildInputs = old.buildInputs ++ inputs; | |
NIX_MYENV_NAME = "haskell-rethinkdb"; | |
shellHook = '' | |
source ~/.bash_prompt | |
# Run the old shell hook of the haskell environment | |
${old.shellHook} | |
''; | |
}); | |
} |
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
let | |
pkgs = import <nixpkgs> {}; | |
haskellPackages = pkgs.haskellPackages.override { | |
overrides = self: super: { | |
haskell-rethinkdb = self.callPackage ./. {}; | |
}; | |
}; | |
in haskellPackages.haskell-rethinkdb.env |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment