Created
November 3, 2017 21:27
-
-
Save anonymous/8430459c66bc560300945e00f93c89db 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 nixpkgs.haskell.lib; | |
let build = name: path: super.callPackage (super.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