Function: project-name

project-name is a byte-compiled function defined in project-nix-store.el.

Signature

(project-name &rest ARGS)

Implementations

(project-name (PROJECT (head nix-store))) in `project-nix-store.el'.

Return `project-nix-store-name-prefix' and store path name for PROJECT.

See `project-root' for store path definition.

Source Code

;; Defined in /nix/store/4avp517pkzrkdwhbzvqxvwaibbch12wf-emacs-packages-deps/share/emacs/site-lisp/project-nix-store.el
(cl-defmethod project-name ((project (head nix-store)))
  "Return `project-nix-store-name-prefix' and store path name for PROJECT.

See `project-root' for store path definition."
  (let ((project-root (project-root project)))
    (with-memoization
        (gethash project-root project-nix-store--cached-project-names)
      (concat project-nix-store-name-prefix
              (substring (directory-file-name project-root)
                         (+ (nth 2 project) ; length of store dir
                            33))))))        ; length of digest and a hyphen