aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Alexander Foremny <aforemny@posteo.de>2023-11-30 04:31:51 +0100
committerLibravatar Alexander Foremny <aforemny@posteo.de>2023-11-30 04:31:53 +0100
commitd81643d9a9bbb1b3593219c882eea52b41087823 (patch)
tree981d9a265754b9f0569ecfe4d5f8de16f05cb975
parent80d1737c7ca12d3338428553968b37e3f5c2de4a (diff)
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.
-rw-r--r--default.nix11
1 files changed, 10 insertions, 1 deletions
diff --git a/default.nix b/default.nix
index 7198b97..39a79f8 100644
--- a/default.nix
+++ b/default.nix
@@ -1,5 +1,13 @@
{ pkgs ? import <nixpkgs> {
- 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;