Created
November 3, 2017 21:21
-
-
Save anonymous/b136ec734a71779be57686da6057bb4f 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
{ package ? "network-graphing", nixpkgs ? (import <nixpkgs> {}) }: | |
let | |
overrides = nixpkgs.haskellPackages.override { | |
overrides = self: super: with self; with nixpkgs.haskell.lib; | |
let build = name: path: callPackage (callCabal2nix "${name}" path {}) {}; in { | |
mkDerivation = args: super.mkDerivation (args // { | |
enableLibraryProfiling = true; | |
enableExecutableProfiling = true; | |
doCheck = false; | |
}); | |
containers = doJailbreak (self.callPackage ./nix/containers.nix {}); | |
ip = doJailbreak (self.callPackage ./nix/ip.nix {}); | |
quickcheck-classes = doJailbreak (self.callPackage ./nix/quickcheck-classes.nix {}); | |
disjoint-containers = doJailbreak (self.callPackage ./nix/disjoint-containers.nix {}); | |
asn1-codec = self.callPackage ./nix/asn1-codec.nix {}; | |
network-graphing = build "network-graphing" ./.; | |
}; | |
}; | |
drv = overrides.${package}; | |
in | |
if nixpkgs.lib.inNixShell then | |
drv.env | |
else | |
drv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment