Browse Source

Force XDG spec in lein

main
parent
commit
b8ad2badd1
Signed by: chris GPG Key ID: 3025DCBD46F81C0F
  1. 15
      README.org
  2. 10
      shells/clojure.nix

15
README.org

@ -423,18 +423,25 @@ mkShell {
** Clojure ** Clojure
[[https://clojure.org][Clojure]] is a dynamic and functional dialect of the Lisp programming language on the Java platform. Like other dialects, Clojure treats code as data and has a Lisp macro system. The current development process is community driven.
[[https://clojure.org][Clojure]] is a dynamic and functional dialect of the Lisp programming language on the Java platform. Like other dialects, Clojure treats code as data and has a Lisp macro system. The current development process is community driven. Unfortunately the tooling does not comply with the XDG directory specification, so we bring it into the modern age kicking and screaming with a custom shell script binary.
Import this shell with ~nix-shell /etc/dotfiles/shells/clojure.nix~. Import this shell with ~nix-shell /etc/dotfiles/shells/clojure.nix~.
#+BEGIN_SRC nix :noweb yes :tangle shells/clojure.nix #+BEGIN_SRC nix :noweb yes :tangle shells/clojure.nix
# <<file-warning>> # <<file-warning>>
{ pkgs ? import <nixpkgs> { } }: { pkgs ? import <nixpkgs> { } }:
with pkgs; with pkgs;
mkShell {
let
myLein = pkgs.writeShellScriptBin "lein" ''
HOME=~/.local/share/lein ${pkgs.leiningen}/bin/lein
'';
in mkShell {
buildInputs = [ buildInputs = [
leiningen
myLein
]; ];
shellHook = '' shellHook = ''
''; '';
@ -1527,7 +1534,7 @@ epkgs.which-key
(erc-tls :server "irc.libera.chat" (erc-tls :server "irc.libera.chat"
:port 6697 :port 6697
:nick "megaphone" :nick "megaphone"
:password (password-store-get "megaphone@libera.chat")
:password (password-store-get "libera.chat/megaphone")
:full-name "Chris Hayward")) :full-name "Chris Hayward"))
;; Configure keybindings. ;; Configure keybindings.

10
shells/clojure.nix

@ -2,9 +2,15 @@
{ pkgs ? import <nixpkgs> { } }: { pkgs ? import <nixpkgs> { } }:
with pkgs; with pkgs;
mkShell {
let
myLein = pkgs.writeShellScriptBin "lein" ''
HOME=~/.local/share/lein ${pkgs.leiningen}/bin/lein
'';
in mkShell {
buildInputs = [ buildInputs = [
leiningen
myLein
]; ];
shellHook = '' shellHook = ''
''; '';

Loading…
Cancel
Save