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,5 +1,5 @@
{ {
description = "Sketches in Quil"; description = "tumblr RSS feed fixer";
inputs = { inputs = {
nixpkgs.url = "github:nixos/nixpkgs"; nixpkgs.url = "github:nixos/nixpkgs";
@ -9,13 +9,18 @@
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 { devShell = pkgs.mkShell {
buildInputs = [ buildInputs = [
pkgs.leiningen pkgs.leiningen
pkgs.jdk11 pkgs.jdk11
pkgs.clojure pkgs.clojure
]; ];
shellHook = ''
alias repl='lein repl';
repl
'';
}; };
}); });
} }