dev.nix - ktosiek/nix-dev GitHub Wiki

Function from {replacer, ...} to a set of packages that should be built. Only packages wrapped in replacer (and their reverse dependencies) will be linked to .nix-dev/outs.

For example this:

{ replacer ? (x: x) }:
let
  nixpkgs = import <nixpkgs> {};
  pkgs = {
    hello = nixpkgs.callPackage ./hello {inherit libhello;};
    libhello = replacer (callPackage ./libhello {});
  };
in pkgs

should create 2 links in .nix-dev/outs - one for hello and one for libhello.

⚠️ **GitHub.com Fallback** ⚠️