Overlays: Difference between revisions

Separate python overlay args from nixpkgs overlay args
m if the hash type is not included in the hash here, you'll receive the following error: hash does not include a type, nor is the type otherwise known from context
 
(2 intermediate revisions by 2 users not shown)
Line 182: Line 182:
       # specified: sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=
       # specified: sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=
       # got:    sha256-173gxk0ymiw94glyjzjizp8bv8g72gwkjhacigd1an09jshdrjb4
       # got:    sha256-173gxk0ymiw94glyjzjizp8bv8g72gwkjhacigd1an09jshdrjb4
       hash = "173gxk0ymiw94glyjzjizp8bv8g72gwkjhacigd1an09jshdrjb4";
       hash = "sha256-173gxk0ymiw94glyjzjizp8bv8g72gwkjhacigd1an09jshdrjb4";
     };
     };
   });
   });
Line 255: Line 255:
=== Overriding a package inside an extensible attribute set ===
=== Overriding a package inside an extensible attribute set ===


Here is an example of adding plugins to `vimPlugins`.
Here is an example of adding plugins to <code>vimPlugins</code>.
<syntaxhighlight lang="nix">
<syntaxhighlight lang="nix">
final: prev: {
final: prev: {
Line 404: Line 404:
* [https://blog.flyingcircus.io/2017/11/07/nixos-the-dos-and-donts-of-nixpkgs-overlays/ Blog post "The DOs and DON’Ts of nixpkgs overlays"]
* [https://blog.flyingcircus.io/2017/11/07/nixos-the-dos-and-donts-of-nixpkgs-overlays/ Blog post "The DOs and DON’Ts of nixpkgs overlays"]
* [https://www.youtube.com/watch?v=s2fkgkN55vk&list=PLgknCdxP89ReD6gxl755B6G_CI65z4J2e Nixpkgs Overlays – A place for all excluded packages] - Talk by Nicolas B. Pierron at NixCon 2017
* [https://www.youtube.com/watch?v=s2fkgkN55vk&list=PLgknCdxP89ReD6gxl755B6G_CI65z4J2e Nixpkgs Overlays – A place for all excluded packages] - Talk by Nicolas B. Pierron at NixCon 2017
* [[Nixpkgs/Patching Nixpkgs]]


==== References ====
==== References ====