;ELC ;;; Compiled ;;; in Emacs version 28.0.50 ;;; with all optimizations. (byte-code "\300\301!\210\300\302!\207" [require nix json] 2) #@75 Get the parsed version of the .drv file. DRV file to load from. (fn DRV) (defalias 'nix-instantiate--parsed #[257 "\301\302!\303\304\303\303D\303\305&\210rq\210\306 \307=\203!\310\311\"\210eb\210\312 )@A\262\313!\210\207" [nix-executable generate-new-buffer "nix show-derivation" nil call-process "show-derivation" buffer-size 0 error "Nix’s show-derivation %s failed to produce any output" json-read kill-buffer] 10 (#$ . 149)]) #@211 Run nix-instantiate on a Nix expression. NIX-FILE the file to instantiate. ATTRIBUTE an attribute of the Nix file to use. PARSE whether to parse nix-instantiate output. (fn NIX-FILE &optional ATTRIBUTE PARSE) (defalias 'nix-instantiate #[769 "\301\302!\303\203\304\303\303D\303 \305\n&\210\202%\304\303\303D\303 %\210rq\210\306 \307=\2036\310\311\"\210\312 \307\306 SO\262\203H\313!\262)\314!\210\207" [nix-instantiate-executable generate-new-buffer "nix-instantiate" nil call-process "-A" buffer-size 0 error "Error: nix-instantiate %s failed to produce any output" buffer-string nix-instantiate--parsed kill-buffer] 13 (#$ . 599) (byte-code "\300\301!\302\303E\207" [read-file-name "Nix file: " nil t] 3)]) (defvar nix-instantiate--running-processes nil) #@207 Make a nix-instantiate process. PROP the prop name of nix-instantiate--running-processes. ERR the error buffer. PROC the process that has been run. EVENT the event that was fired. (fn PROP ERR PROC EVENT) (defalias 'nix-instantiate--sentinel #[1028 "\211\301\230\203;r\302!q\210\303 \304=\2044\305\306 \304\303 SO!\307\"\211\2032\211@\211!\210A\266\202\202!\266)\310\311#\312!?\205K\313\302!!\210\313!\207" [nix-instantiate--running-processes "finished\n" process-buffer buffer-size 0 nix-instantiate--parsed buffer-string lax-plist-get lax-plist-put nil process-live-p kill-buffer] 9 (#$ . 1386)]) #@240 Run nix-instantiate on a Nix expression, asynchronously. CALLBACK the function to call when instantiate completes. NIX-FILE the file to instantiate ATTRIBUTE an attribute of the Nix file to use. (fn CALLBACK NIX-FILE &optional ATTRIBUTE) (defalias 'nix-instantiate-async #[770 "\302!\262\211\203\302\"\202\303\"\304\305!\304\306!\307 B#\310\311\305\312\313\314  D\f\2059\315 D\"\316\317\320\321\322 #\323\f&\f\207" [nix-instantiate--running-processes nix-instantiate-executable expand-file-name lax-plist-get generate-new-buffer "nix-instantiate" "nix-instantiate error" lax-plist-put make-process :name :buffer :command append "-A" :noquery t :sentinel apply-partially nix-instantiate--sentinel :stderr] 21 (#$ . 2011)]) (provide 'nix-instantiate)