about summary refs log tree commit diff
path: root/emacs/.emacs.d/snippets
diff options
context:
space:
mode:
Diffstat (limited to 'emacs/.emacs.d/snippets')
-rw-r--r--emacs/.emacs.d/snippets/nix-mode/shell-nix7
1 files changed, 4 insertions, 3 deletions
diff --git a/emacs/.emacs.d/snippets/nix-mode/shell-nix b/emacs/.emacs.d/snippets/nix-mode/shell-nix
index 4c308bb51b3a..45cb24e2b9e3 100644
--- a/emacs/.emacs.d/snippets/nix-mode/shell-nix
+++ b/emacs/.emacs.d/snippets/nix-mode/shell-nix
@@ -2,9 +2,10 @@
 # name: shell.nix boilerplate
 # key: import
 # --
-with import <nixpkgs> {};
-
-stdenv.mkDerivation {
+let
+  briefcase = with import <briefcase> {};
+  pkgs = briefcase.third_party.pkgs;
+in stdenv.mkDerivation {
   name = "$1";
   buildInputs = [
     $2