2019-09-28 16:27:07 +02:00
|
|
|
|
|
|
|
# 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 // {
|
2022-04-08 00:02:37 +02:00
|
|
|
src = pkgs.lib.sourceByRegex ../. [
|
|
|
|
".*[.]cabal"
|
|
|
|
"LICENSE"
|
|
|
|
"src/?.*"
|
|
|
|
"README.asciidoc"
|
|
|
|
];
|
2019-09-28 16:27:07 +02:00
|
|
|
preCheck = ''
|
|
|
|
export NIX_LOG_DIR=$TMPDIR
|
|
|
|
export NIX_STATE_DIR=$TMPDIR
|
|
|
|
export NIX_PATH=nixpkgs=${pkgs.path}
|
|
|
|
'';
|
|
|
|
})
|