From 66014852fea6a9162dff1466200b325bf441f593 Mon Sep 17 00:00:00 2001 From: Anish Lakhwara Date: Fri, 25 Mar 2022 17:18:37 +1000 Subject: [PATCH] start repl on nix develop --- flake.nix | 29 +++++++++++++++++------------ 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/flake.nix b/flake.nix index 57437a1..83e0f69 100644 --- a/flake.nix +++ b/flake.nix @@ -1,21 +1,26 @@ { - description = "Sketches in Quil"; + description = "tumblr RSS feed fixer"; inputs = { nixpkgs.url = "github:nixos/nixpkgs"; flake-utils.url = "github:numtide/flake-utils"; }; - outputs = { self, nixpkgs, flake-utils }: + outputs = { self, nixpkgs, flake-utils }: flake-utils.lib.eachDefaultSystem (system: - let pkgs = nixpkgs.legacyPackages.${system}; - in { - devShell = pkgs.mkShell { - buildInputs = [ - pkgs.leiningen - pkgs.jdk11 - pkgs.clojure - ]; - }; - }); + let pkgs = nixpkgs.legacyPackages.${system}; + in + { + devShell = pkgs.mkShell { + buildInputs = [ + pkgs.leiningen + pkgs.jdk11 + pkgs.clojure + ]; + shellHook = '' + alias repl='lein repl'; + repl + ''; + }; + }); }