about summary refs log tree commit diff
path: root/users/wpcarro/emacs/.emacs.d/snippets/nix-mode/shell-nix
diff options
context:
space:
mode:
Diffstat (limited to 'users/wpcarro/emacs/.emacs.d/snippets/nix-mode/shell-nix')
-rw-r--r--users/wpcarro/emacs/.emacs.d/snippets/nix-mode/shell-nix13
1 files changed, 13 insertions, 0 deletions
diff --git a/users/wpcarro/emacs/.emacs.d/snippets/nix-mode/shell-nix b/users/wpcarro/emacs/.emacs.d/snippets/nix-mode/shell-nix
new file mode 100644
index 000000000000..45cb24e2b9e3
--- /dev/null
+++ b/users/wpcarro/emacs/.emacs.d/snippets/nix-mode/shell-nix
@@ -0,0 +1,13 @@
+# -*- mode: snippet -*-
+# name: shell.nix boilerplate
+# key: import
+# --
+let
+  briefcase = with import <briefcase> {};
+  pkgs = briefcase.third_party.pkgs;
+in stdenv.mkDerivation {
+  name = "$1";
+  buildInputs = [
+    $2
+  ];
+}
\ No newline at end of file