mirror of
https://github.com/hercules-ci/arion.git
synced 2024-11-22 15:24:26 +03:00
161ee3aaf9
Awful function, but it works.
20 lines
585 B
Nix
20 lines
585 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 // {
|
|
src = pkgs.lib.sourceByRegex ../. [
|
|
".*[.]cabal"
|
|
"LICENSE"
|
|
"src/?.*"
|
|
"README.asciidoc"
|
|
];
|
|
preCheck = ''
|
|
export NIX_LOG_DIR=$TMPDIR
|
|
export NIX_STATE_DIR=$TMPDIR
|
|
export NIX_PATH=nixpkgs=${pkgs.path}
|
|
'';
|
|
}) |