Nixpkgs/Reviewing changes: Difference between revisions
imported>Artturin add Pre-flakes local checkout for Packages |
imported>Artturin No edit summary |
||
| Line 6: | Line 6: | ||
=== Pre-flakes local checkout === | === Pre-flakes local checkout === | ||
<syntaxhighlight lang="nix"> | <syntaxhighlight lang="nix"> | ||
nixpkgs.overlays = let | |||
# Change | owner = "Artturin"; | ||
branchname = "cups-filters-update"; # branchname or rev | |||
pkgsReview = pkgs.fetchzip { | |||
url = "https://github.com/${owner}/nixpkgs/archive/${branchname}.tar.gz"; | |||
# Change to 52 zeroes when the archive needs to be redownloaded | |||
sha256 = "sha256-/OR/uEqCy4QlManW9LcySsDXoTXFJ8G/xjhIsEpM4zM="; | |||
}; | |||
# local checkout | |||
#pkgsReview = /home/artturin/nixgits/my-nixpkgs; | |||
in [ | |||
(self: super: { | |||
review = import pkgsReview { overlays = []; config = super.config; }; | |||
cups-filters = self.review.cups-filters; | |||
}) | |||
]; | |||
</syntaxhighlight> | </syntaxhighlight> | ||