Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

emacsMacport: Rename emacsVersion attribute to version #75618

Merged
merged 1 commit into from Dec 14, 2019

Conversation

jsamsa
Copy link
Contributor

@jsamsa jsamsa commented Dec 13, 2019

Changes in #74936 depend on emacs
derivations to have a version attribute.

Motivation for this change

change in #74936 reference "version" attribute in emacs derivations. emacsMacport used "emacsVersion". I found no other references to "emacsVersion" throughout nixpkgs and chose to change the derivation to use version which is in line with the reference found in elpa-packages.nix.

Bug can be reproduced/tested in the repl like so:

nix-repl> :l <nixpkgs>
nix-repl> (emacsPackagesFor emacsMacport).emacsWithPackages(ps: [ ps.seq ])
Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • [X ] macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nix-review --run "nix-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.
Notify maintainers

cc @jwiegley @matthewbauer

@jsamsa jsamsa changed the title Rename emacsVersion attribute to version emacsMacport: Rename emacsVersion attribute to version Dec 13, 2019
@adisbladis
Copy link
Member

@GrahamcOfBorg build emacsMacport

@jsamsa
Copy link
Contributor Author

jsamsa commented Dec 13, 2019

Here is the error produced before the fix:

error: attribute 'version' missing, at /nix/store/dd3rda2yhmn8qdmpdwz4kqwfh5h8af2w-nixpkgs-20.03pre204216.cc6cf0a96a6/nixpkgs/pkgs/applications/editors/emacs-modes/elpa-packages.nix:43:35

Changes in NixOS#74936 depend on emacs
derivations to have a version attribute.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants