Skip to content

Instantly share code, notes, and snippets.

Created November 3, 2017 21:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/8430459c66bc560300945e00f93c89db to your computer and use it in GitHub Desktop.
Save anonymous/8430459c66bc560300945e00f93c89db to your computer and use it in GitHub Desktop.
{ 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