;ELC ;;; Compiled ;;; in Emacs version 28.0.50 ;;; with all optimizations. (byte-code "\300\301!\210\302\303\304\305\306\307%\210\310\311\312\313\314DD\315\306\303\316\317&\210\310\320\312\313\321DD\322\306\303\316\317&\210\310\323\312\313\324DD\315\306\303\316\317&\210\310\325\312\313\326DD\315\306\303\316\317&\210\310\327\312\313\330DD\331\306\303\316\317&\210\310\332\312\313\333DD\334\306\303\316\317&\210\310\335\312\313\336DD\334\306\303\316\317&\207" [require pcomplete custom-declare-group nix nil "Nix-related customizations" :group languages custom-declare-variable nix-executable funcall function #[0 "\300\207" [#1="nix"] 1 #1#] "Nix executable location." :type string nix-build-executable #[0 "\300\207" [#2="nix-build"] 1 #2#] "Nix-build executable location." nix-instantiate-executable #[0 "\300\207" [#3="nix-instantiate"] 1 #3#] nix-store-executable #[0 "\300\207" [#4="nix-store"] 1 #4#] nix-shell-executable #[0 "\300\207" [#5="nix-shell"] 1 #5#] "Location of ‘nix-shell’ executable." nix-store-dir #[0 "\300\207" [#6="/nix/store"] 1 #6#] "Nix store directory." nix-state-dir #[0 "\300\207" [#7="/nix/var"] 1 #7#]] 8) #@31 Get the current system tuple. (defalias 'nix-system #[0 "\301\302!\303\304\303\303D\303\305\306\307&\210rq\210\310 \262)\311!\210\207" [nix-executable generate-new-buffer "nix eval" nil call-process "eval" "--raw" "(builtins.currentSystem)" buffer-string kill-buffer] 10 (#$ . 1162)]) (defvar nix-version nil) #@24 Get the version of Nix (defalias 'nix-version #[0 "\203\207\302\303!\304\305 \304\304D\304\306%\210rq\210\307 \262)\310!\210\207" [nix-version nix-executable generate-new-buffer "nix eval" nil call-process "--version" buffer-string kill-buffer] 8 (#$ . 1484)]) (defvar nix-commands '("add-to-store" "build" "cat-nar" "cat-store" "copy" "copy-sigs" "dump-path" "edit" "eval" "hash-file" "hash-path" "log" "ls-nar" "ls-store" "optimise-store" "path-info" "ping-store" "repl" "run" "search" "show-config" "show-derivation" "sign-paths" "to-base16" "to-base32" "to-base64" "upgrade-nix" "verify" "why-depends")) (defvar nix-toplevel-options '("-v" "--verbose" "-h" "--help" "--debug" "--help-config" "--option" "--version")) (defvar nix-config-options '("allowed-uris" "allow-import-from-derivation" "allow-new-priveleges" "allowed-users" "auto-optimise-store" "builders" "builders-use-substitutes" "build-users-group" "compress-build-log" "connect-timeout" "cores" "extra-sandbox-paths" "extra-substituters" "fallback" "fsync-metadata" "hashed-mirrors" "http-connections" "keep-build-log" "keep-derivations" "keep-env-derivations" "keep-outputs" "max-build-log-size" "max-jobs" "max-silent-time" "netrc-file" "plugin-files" "pre-build-hook" "repeat" "require-sigs" "restrict-eval" "sandbox" "sandbox-dev-shm-size" "sandbox-paths" "secret-key-files" "show-trace" "substitute" "substituters" "system" "timeout" "trusted-public-keys" "trusted-subtituters" "trusted-users")) #@87 Complete flags to the Nix command. OPTIONS a list of options to accept. (fn OPTIONS) (defalias 'nix--pcomplete-flags #[257 "\302\303\304\"\205\276\305\306\307\"\310\211\211$\210S 8\211\311\230\203-\305\312\310\211\211$\210\305\313\310\211\211$\266\202\211\314\230\2049\211\315\230\203D\305\316\310\211\211$\266\202\211\317\230\204P\211\320\230\203b\305\321\310\211\211$\210\305\322\310\211\211$\266\202\211\323\230\204n\211\324\230\203y\305\325\310\211\211$\266\202\211\326\230\204\205\211\327\230\203\220\305\330\310\211\211$\266\202\211\331\230\204\234\211\332\230\203\247\305\333\310\211\211$\266\202\211\334\230\204\263\211\335\230\203\272\305\336\310\211\211$\210\210\202\207" [pcomplete-index pcomplete-args pcomplete-match "^-" 0 pcomplete--here make-closure #[0 "\300\207" [V0] 1] nil "--option" #[0 "\207" [nix-config-options] 1] #[0 "\300\207" [nil] 1] "-f" "--file" #[0 "\300\301\302\"\207" [pcomplete-entries nil file-exists-p] 3] "--arg" "--argstr" #[0 "\300\207" [nil] 1] #[0 "\300\207" [nil] 1] "-I" "--include" #[0 "\300\301\302\"\207" [pcomplete-entries nil file-exists-p] 3] "-k" "--keep" #[0 "\300\207" [nil] 1] "-u" "--unset" #[0 "\300\207" [nil] 1] "-s" "--substituter" #[0 "\300\207" [nil] 1]] 7 (#$ . 2966)]) #@33 Completion for the nix command. (defalias 'pcomplete/nix #[0 "\305\306\307 \"\203{\310\311!\312\313GS\" B\314\315\316\n\314\314D\314A&\210rq\210\317 \262)\320!\210\321\322\"\314CA\211\203S\211@\211\323\230\204L\242B\240\210A\266\202\2029\210AA\211\203m\314@\210\324\325\314\211\211$\210A\266\202\202W\210\324\326\327\"\314\330\314$\266\202)\207\331 !\210\324\332\314\211\211$\210\fS8\211\333\267\202w\331\334 \335\"!\266\202|\331\334 \336\"!\266\202|\331\334 \337\"!\266\202|\331\334 \340\"!\266\202|\331\334 \341\"!\266\202|\331\334 \342\"!\266\202|\331\334 \343\"!\266\202|\331\334 \344\"!\266\202|\331\334 \345\"!\266\202|\331\334 \346\"!\266\202|\331\334 \347\"!\266\202|\331\334 \350\"!\266\202|\331\334 \351\"!\266\202|\331\334 \352\"!\266\202|\331\334 \353\"!\266\202|\331\334 \354\"!\266\202|\331\334 \355\"!\266\202|\331\334 \356\"!\266\202|\331\334 \357\"!\266\202|\331\334 \360\"!\266\202|\331\334 \361\"!\266\202|\331 !\266\324\362\314\211\211$\207" [pcomplete-args process-environment nix-executable nix-toplevel-options pcomplete-index string-prefix-p "nix (Nix) 3" nix-version generate-new-buffer "nix-completions" format "NIX_GET_COMPLETIONS=%s" nil apply call-process buffer-string kill-buffer split-string "\n" "" pcomplete--here #[0 "\300\207" [nil] 1] make-closure #[0 "\300\242\207" [V0] 1] t nix--pcomplete-flags #[0 "\207" [nix-commands] 1] #s(hash-table size 21 test equal rehash-size 1.5 rehash-threshold 0.8125 purecopy t data ("run" 144 "build" 155 "add-to-store" 166 "copy" 177 "copy-sigs" 188 "dump-path" 199 "edit" 210 "eval" 221 "hash-file" 232 "hash-path" 243 "log" 254 "ls-nar" 265 "ls-store" 276 "repl" 287 "search" 298 "show-config" 309 "show-derivation" 320 "sign-paths" 331 "upgrade-nix" 342 "verify" 353 "why-depends" 364)) append ("--arg" "--argstr" "-c" "--command" "-f" "--file" "-i" "-I" "--include" "-k" "--keep" "-u" "--unset") ("--arg" "--argstr" "--dry-run" "-f" "--file" "-I" "--include" "--no-link" "-o" "--out-link") ("--dry-run" "-n" "--name") ("--all" "--arg" "--argstr" "-f" "--file" "--from" "-I" "--include" "--no-check-sigs" "--no-recursive" "-s" "--substitute" "--to") ("--all" "--arg" "--argstr" "-f" "--file" "-I" "--include" "-r" "--recursive" "-s" "--substituter") ("--arg" "--argstr" "-f" "--file" "-I" "--include") ("--arg" "--argstr" "-f" "--file" "-I" "--include") ("--arg" "--argstr" "-f" "--file" "-I" "--include" "--json" "--raw") ("--base16" "--base32" "--base64" "--type") ("--base16" "--base32" "--base64" "--type") ("--arg" "--argstr" "-f" "--file" "-I" "--include" "--json" "--raw") ("-d" "--directory" "--json" "-l" "--long" "-R" "--recursive") ("-d" "--directory" "--json" "-l" "--long" "-R" "--recursive") ("--arg" "--argstr" "-I" "--include") ("--arg" "--argstr" "-f" "--file" "-I" "--include" "--json" "--no-cache" "-u" "--update-cache") ("--json") ("--arg" "--argstr" "-f" "--file" "-I" "--include" "-r" "--recursive") ("--all" "--arg" "--argstr" "-f" "--file" "-I" "--include" "-k" "--key-file" "-r" "--recursive") ("-p" "--profile") ("--all" "--arg" "--argstr" "-f" "--file" "-I" "--include" "--no-contents" "--no-trust" "-r" "--recursive" "-n" "--sigs-needed" "-s" "--substuter") ("-a" "--all" "--arg" "--argstr" "-f" "--file" "-I" "--include") #[0 "\300 \207" [pcomplete-entries] 1]] 12 (#$ . 4242)]) (provide 'nix)