[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/nix-mode 097b7bb992 257/500: Add nix-build.el
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/nix-mode 097b7bb992 257/500: Add nix-build.el |
Date: |
Sat, 29 Jan 2022 08:27:11 -0500 (EST) |
branch: elpa/nix-mode
commit 097b7bb992077888960ebfd2d9092863d3821816
Author: Matthew Bauer <mjbauer95@gmail.com>
Commit: Matthew Bauer <mjbauer95@gmail.com>
Add nix-build.el
---
nix-build.el | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
diff --git a/nix-build.el b/nix-build.el
new file mode 100644
index 0000000000..0bea996f4a
--- /dev/null
+++ b/nix-build.el
@@ -0,0 +1,33 @@
+;;; nix.el -- run nix commands in Emacs -*- lexical-binding: t -*-
+
+;; Author: Matthew Bauer <mjbauer95@gmail.com>
+;; Homepage: https://github.com/NixOS/nix-mode
+;; Keywords: nix
+
+;; This file is NOT part of GNU Emacs.
+
+;;; Commentary:
+
+;; To use this just run:
+
+;; M-x RET nix-shell RET
+
+;; This will give you some
+
+;;; Code:
+
+(require 'nix)
+(require 'nix-search)
+
+(defun nix-build (&optional attr)
+ "Run nix-build in a compilation buffer."
+ (interactive (list (nix-search-read-attr "./.")))
+ (setq compile-command (format "%s -A '%s'" nix-build-executable attr))
+ (setq-default compilation-directory default-directory)
+ (compilation-start compile-command nil
+ (apply-partially (lambda (attr _)
+ (format "*nix-build*<%s>" attr))
+ attr)))
+
+(provide 'nix-build)
+;;; nix-build.el ends here
- [nongnu] elpa/nix-mode e298244f55 222/500: Add nix-search.el, (continued)
- [nongnu] elpa/nix-mode e298244f55 222/500: Add nix-search.el, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 149d924f6f 221/500: Add nix-store.el, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 429a92a59e 225/500: Group configs in nix-shell, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode a4e6560902 223/500: Add nix-instantiate.el, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 00d099602a 226/500: Fix linter warning, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode cfdeffd066 228/500: Add new files to Cask, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 5aaf80392f 231/500: Avoid recursive loop, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 3aeec264e0 236/500: nix-search: add nix-search-read-attr, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode fea066cec6 241/500: Fix run phase, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 6532fcf244 244/500: Don’t expand nix-file in nix-shell., ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 097b7bb992 257/500: Add nix-build.el,
ELPA Syncer <=
- [nongnu] elpa/nix-mode a6571fa877 260/500: Add nix-log.el, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 0c2807f037 262/500: Cleanup nix-build.el, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode b62c395b65 264/500: Remove nix-shell-haskell.el, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 1dd112e5cf 267/500: Fix function used as variable, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode f1973ceb4b 269/500: Add .nix to auto-mode-alist, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 1389a6b25a 275/500: Fix flycheck warnings, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 95ef285e74 277/500: Update .nix script, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 1ade7b76bd 282/500: ert/indent: Add testcase for contents of lists, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 02b59d9bcf 283/500: ert/indent: Add testcases for issues reported in #60, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode bb602e160f 286/500: Cleanups, ELPA Syncer, 2022/01/29