Created
March 13, 2020 00:43
-
-
Save yuanwang-wf/4a483de643db413c956fbe5e9ece3f05 to your computer and use it in GitHub Desktop.
update
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
{ nixpkgs ? import <nixpkgs> {}, compiler ? "ghc882" } : | |
let | |
bootstrap = import <nixpkgs> { }; | |
nixpkgs = builtins.fromJSON (builtins.readFile ./nixpkgs.json); | |
src = bootstrap.fetchFromGitHub { | |
owner = "NixOS"; | |
repo = "nixpkgs"; | |
inherit (nixpkgs) rev sha256; | |
}; | |
pkgs = import src { }; | |
myHaskellPackages = pkgs.haskell.packages."${compiler}".override { | |
overrides = self: super: rec { | |
time-compat = self.callPackage ./time-compat.nix { }; | |
blog = self.callPackage ./blog.nix {}; | |
}; | |
}; | |
in { | |
blog = myHaskellPackages.blog; | |
} | |
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, base, base-compat, base-orphans, deepseq, fetchgit | |
, HUnit, QuickCheck, stdenv, tagged, tasty, tasty-hunit | |
, tasty-quickcheck, time | |
}: | |
mkDerivation { | |
pname = "time-compat"; | |
version = "1.9.2.2"; | |
src = fetchgit { | |
url = "https://github.com/andersk/time-compat.git"; | |
sha256 = "11y1fkndcw8bkpfx3jwpbv6i9p0v7snavy2vi76sckkk0jp0rpq5"; | |
rev = "d8d82905d009c44e7e8148442d76820a5d51b1df"; | |
fetchSubmodules = true; | |
}; | |
libraryHaskellDepends = [ base base-orphans deepseq time ]; | |
testHaskellDepends = [ | |
base base-compat deepseq HUnit QuickCheck tagged tasty tasty-hunit | |
tasty-quickcheck time | |
]; | |
homepage = "https://github.com/phadej/time-compat"; | |
description = "Compatibility package for time"; | |
license = stdenv.lib.licenses.bsd3; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment