start repl on nix develop

This commit is contained in:
Anish Lakhwara 2022-03-25 17:18:37 +10:00
parent dfba351059
commit 66014852fe

View file

@ -1,21 +1,26 @@
{ {
description = "Sketches in Quil"; description = "tumblr RSS feed fixer";
inputs = { inputs = {
nixpkgs.url = "github:nixos/nixpkgs"; nixpkgs.url = "github:nixos/nixpkgs";
flake-utils.url = "github:numtide/flake-utils"; flake-utils.url = "github:numtide/flake-utils";
}; };
outputs = { self, nixpkgs, flake-utils }: outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system: flake-utils.lib.eachDefaultSystem (system:
let pkgs = nixpkgs.legacyPackages.${system}; let pkgs = nixpkgs.legacyPackages.${system};
in { in
devShell = pkgs.mkShell { {
buildInputs = [ devShell = pkgs.mkShell {
pkgs.leiningen buildInputs = [
pkgs.jdk11 pkgs.leiningen
pkgs.clojure pkgs.jdk11
]; pkgs.clojure
}; ];
}); shellHook = ''
alias repl='lein repl';
repl
'';
};
});
} }