-
-
Save hakujin/d1cb0a301b78bd83e4720251a0a71961 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
let | |
bootstrap = import <nixpkgs> {}; | |
nixpkgs = builtins.fromJSON (builtins.readFile ./nixpkgs.json); | |
src = bootstrap.fetchFromGitHub { | |
owner = "NixOS"; | |
repo = "nixpkgs"; | |
inherit (nixpkgs) rev sha256; | |
}; | |
config = { | |
allowUnfree = true; | |
packageOverrides = pkgs: rec { | |
haskellPackages = pkgs.haskellPackages.override { | |
overrides = haskellPackagesNew: haskellPackagesOld: rec { | |
validation = pkgs.haskell.lib.dontCheck haskellPackagesOld.validation; | |
}; | |
}; | |
}; | |
}; | |
pkgs = import src { inherit config; }; | |
gems = pkgs.bundlerEnv { | |
name = "backend-tooling"; | |
ruby = pkgs.ruby; | |
gemdir = ./.; | |
}; | |
in with pkgs; { | |
project = haskell.lib.overrideCabal | |
(haskellPackages.callCabal2nix "haskell-ruby-test" ./. {}) | |
( drv: { | |
buildDepends = (drv.buildDepends or []) ++ [ gems ruby ]; | |
doHaddock = false; | |
doCheck = false; | |
} | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment