1
1
mirror of https://github.com/srid/rib.git synced 2024-11-27 01:12:09 +03:00

Use nix gitignore to speedup builds

This commit is contained in:
Sridhar Ratnakumar 2020-01-21 13:00:50 -05:00
parent ca3e9fbd1b
commit 1a1470534f

View File

@ -2,10 +2,13 @@ let
# Use https://howoldis.herokuapp.com/ to find the next hash to update nixpkgs to.
# Look for the "Last updated" hash for the entry `nixpkgs-unstable`
nixpkgsRev = "c438ce12a85";
inherit (import (builtins.fetchTarball "https://github.com/hercules-ci/gitignore/archive/7415c4f.tar.gz") { }) gitignoreSource;
ribRoot = gitignoreSource ./.;
in {
pkgs ? import (builtins.fetchTarball "https://github.com/nixos/nixpkgs/archive/${nixpkgsRev}.tar.gz") {}
, compiler ? "default"
, root ? ./.
, root ? ribRoot
, name ? "rib"
, source-overrides ? {}
, ...
@ -19,7 +22,7 @@ in
pkgs.haskellPackages.developPackage {
inherit root name;
source-overrides = {
rib = ./.;
rib = ribRoot;
clay =
githubRepo "sebastiaanvisser/clay" "cc7729b";
megaparsec =