;ELC ;;; Compiled ;;; in Emacs version 28.0.50 ;;; with all optimizations. (byte-code "\300\301!\210\300\302!\210\300\303!\210\300\304!\207" [require nix nix-instantiate nix-shell json] 2) #@110 Run nix search. SEARCH a search term to use. FILE a Nix expression to search in. (fn &optional SEARCH FILE) (defalias 'nix-search #[512 "\204\301\262\211\204\302 \210\303\304!\305\306\305\305D\305\307\310\311\n\f& \210rq\210\312 \313=\2033\314\315\"\210eb\210\316 \262)\317!\210\320\321!\203|\303\322!r\211q\210\211\203t\211@\323\324\325@\326\327A\"\326\330A\"\326\331A\"%!\210A\266\202\202M\210)\332\333\"\266\317!\210\207" [nix-executable "" nix-read-file generate-new-buffer "nix search" nil call-process "search" "--json" "-f" buffer-size 0 error "Error: nix search %s failed to produce any output" json-read kill-buffer called-interactively-p any "*nix search*" widget-insert format "attr: %s\nname: %s\nversion: %s\ndescription: %s\n\n" alist-get pkgName version description display-buffer display-buffer-pop-up-window] 16 (#$ . 202) nil]) #@74 Read from a list of attributes. FILE the nix file to look in. (fn FILE) (defalias 'nix-search-read-attr #[257 "\300\301\302\303\304\"\"\305\"\306\307!\203\307\202\310\211\311\"\207" [sort mapcar #[257 "\300@!\207" [symbol-name] 3 "\n\n(fn X)"] nix-search "" string< fboundp ivy-read completing-read "Attribute: "] 7 (#$ . 1085)]) (provide 'nix-search)