Commit 232ab629 authored by Mike Ledger's avatar Mike Ledger

do not require outside nix

parent 6fcbb8ab
Pipeline #54932488 failed with stage
in 1 minute and 49 seconds
......@@ -6,9 +6,6 @@ tests:
- nix-env -i wget
- nix-env -i bash
script:
- cd respecify
- git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/transportengineering/rnd/radixtree.git
- cd ..
- nix-env -f respecify/nix/nixpkgs -i cabal-install
- nix-shell --arg haskellPackage respecify/nix/haskellPackage.nix -A env --command 'cabal v1-test --show-details=direct'
{ haskellPackage ? ../nix/haskellPackage.nix }:
import haskellPackage {
{ nixpkgs ? import <nixpkgs> {}, extra ? {}, drv ? {} }:
let
path = ./.;
drv = { doCheck = true; };
}
name = builtins.baseNameOf path;
in
with (nixpkgs.haskell.lib);
with (nixpkgs.haskellPackages);
overrideCabal
(callCabal2nix name path
(if builtins.isFunction extra then extra nixpkgs else extra))
(drv0: (drv0 // {
doCheck = true;
doBenchmark = false;
doHaddock = false;
doCoverage = false;
enableLibraryProfiling = false;
enableExecutableProfiling = false;
}) // drv)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment