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