Skip to content

Instantly share code, notes, and snippets.

@nc6
Created July 7, 2017 09:57
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 nc6/1a62763714e199b093006da258409939 to your computer and use it in GitHub Desktop.
Save nc6/1a62763714e199b093006da258409939 to your computer and use it in GitHub Desktop.
numhask build
# ~/.nixpkgs/config.nix
{ pkgs }:
{
allowUnfree = true;
packageOverrides = self: rec {
haskellPackages = self.haskellPackages.override {
overrides = hsSelf: hsSuper: {
numhask = hsSelf.callPackage /home/nc/proj/numhask {};
};
};
}
{ mkDerivation, adjunctions, base, distributive, doctest, HUnit
, protolude, QuickCheck, singletons, stdenv, tasty, tasty-hunit
, tasty-quickcheck, vector
}:
mkDerivation {
pname = "numhask";
version = "0.0.4";
src = ./.;
doCheck = false;
libraryHaskellDepends = [
adjunctions base distributive protolude QuickCheck singletons
vector
];
testHaskellDepends = [
base doctest HUnit QuickCheck tasty tasty-hunit tasty-quickcheck
];
homepage = "https://github.com/tonyday567/numhask";
description = "A numeric prelude";
license = stdenv.lib.licenses.bsd3;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment