branch: elpa/nix-mode
commit 149d924f6f264c1de94eba672ed44d8c70d9e9d3
Author: Matthew Bauer <[email protected]>
Commit: Matthew Bauer <[email protected]>
Add nix-store.el
---
nix-store.el | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
diff --git a/nix-store.el b/nix-store.el
new file mode 100644
index 0000000000..c702f388d0
--- /dev/null
+++ b/nix-store.el
@@ -0,0 +1,25 @@
+;;; nix.el -- run nix commands in Emacs -*- lexical-binding: t -*-
+
+;; Author: Matthew Bauer <[email protected]>
+;; Homepage: https://github.com/NixOS/nix-mode
+;; Keywords: nix
+
+;; This file is NOT part of GNU Emacs.
+
+;;; Commentary:
+
+;;; Code:
+
+(require 'nix)
+
+(defun nix-store-realise (path)
+ "Realise a path asynchronously.
+PATH the path within /nix/store to realise"
+ (make-process
+ :buffer nil
+ :command (list nix-store-executable "-r" path)
+ :noquery t
+ :name (format "*nix-store*<%s>" path)))
+
+(provide 'nix-store)
+;;; nix-store.el ends here