diff options
Diffstat (limited to 'default.nix')
-rw-r--r-- | default.nix | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/default.nix b/default.nix index 4caf76a..0d16bcb 100644 --- a/default.nix +++ b/default.nix @@ -33,7 +33,12 @@ (self: super: { anissue = pkgs.writers.writeDashBin "anissue" '' set -efu - exec cabal run anissue -- "$@" + cwd=$PWD + cd ${self.lib.escapeShellArg (toString ./.)} + cabal build anissue + anissue=$(find dist-newstyle -type f -executable -name anissue -exec realpath '{}' \; | head -1) + cd $cwd + exec $anissue "$@" ''; }) ]; @@ -48,6 +53,7 @@ let ./diff-parse.patch; lingo = pkgs.haskell.lib.doJailbreak (pkgs.haskell.lib.markUnbroken super.lingo); + sh = pkgs.haskell.lib.dontCheck (super.callCabal2nix "sh" (import ./nix/sources.nix).sh { }); anissue = (super.callCabal2nix "anissue" ./. ({ inherit (pkgs) tree-sitter; } // pkgs.lib.filterAttrs (_: pkgs.lib.isDerivation) |