mirror of
https://github.com/hercules-ci/arion.git
synced 2024-11-23 09:38:12 +03:00
14 lines
463 B
Nix
14 lines
463 B
Nix
|
|
||
|
# NOTE: This file produces a haskell library, not the arion package!
|
||
|
|
||
|
{ pkgs ? import ./default.nix {}, haskellPackages ? pkgs.haskellPackages }:
|
||
|
let
|
||
|
inherit (pkgs.haskell.lib) overrideCabal addBuildTools;
|
||
|
in
|
||
|
overrideCabal (addBuildTools (haskellPackages.callCabal2nix "arion-compose" ./.. {}) [pkgs.nix]) (o: o // {
|
||
|
preCheck = ''
|
||
|
export NIX_LOG_DIR=$TMPDIR
|
||
|
export NIX_STATE_DIR=$TMPDIR
|
||
|
export NIX_PATH=nixpkgs=${pkgs.path}
|
||
|
'';
|
||
|
})
|