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  
nixpkgs.overlays = let  
     # Change this path to your local nixpkgs
  owner = "Artturin";
    myPkgs = /home/artturin/nixgits/nixpkgs1;
  branchname = "cups-filters-update"; # branchname or rev
  in [
  pkgsReview = pkgs.fetchzip {
    (self: super: {
    url = "https://github.com/${owner}/nixpkgs/archive/${branchname}.tar.gz";
      my = import myPkgs { overlays = []; config = super.config; };
     # Change to 52 zeroes when the archive needs to be redownloaded
      dcp9020cdwlpr = self.my.dcp9020cdwlpr;
    sha256 = "sha256-/OR/uEqCy4QlManW9LcySsDXoTXFJ8G/xjhIsEpM4zM=";
      dcp9020cdw-cupswrapper = self.my.dcp9020cdw-cupswrapper;
  };
    })
  # 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>