From fc0afaaa273f5b5d3696df87d70d5347a13bb9ac Mon Sep 17 00:00:00 2001 From: Alexander Foremny Date: Mon, 18 Dec 2023 13:50:22 +0100 Subject: feat: compute history top to bottom Disables caching. --- default.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'default.nix') 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) -- cgit v1.2.3