From d81643d9a9bbb1b3593219c882eea52b41087823 Mon Sep 17 00:00:00 2001 From: Alexander Foremny Date: Thu, 30 Nov 2023 04:31:51 +0100 Subject: chore(shell): add `anissue` alias to `cabal run anissue` This makes it more convenient to use `anissue` from within this project, as it always refers to the current build. Note that we don't use `alias` whithin `shellHook` for the same purpose, because direnv does not support aliases. --- default.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'default.nix') diff --git a/default.nix b/default.nix index 7198b97..39a79f8 100644 --- a/default.nix +++ b/default.nix @@ -1,5 +1,13 @@ { pkgs ? import { - overlays = [ (import ./pkgs) ]; + overlays = [ + (import ./pkgs) + (self: super: { + anissue = pkgs.writers.writeDashBin "anissue" '' + set -efu + exec cabal run anissue -- "$@" + ''; + }) + ]; } }: @@ -43,6 +51,7 @@ rec { haskellPackages.hlint haskellPackages.ormolu haskellPackages.pointfree + pkgs.anissue pkgs.ghcid pkgs.haskell-language-server ] ++ anissue.passthru.dependencies; -- cgit v1.2.3