aboutsummaryrefslogblamecommitdiff
path: root/nix/common.nix
blob: acc5ce7e6caa9e2779beb800b4f2c8ff4d0520b1 (plain) (tree)
1
2
3
4
5
6
7
8



                                                             
         

                                                                                  
    



                                                            
                                                
 
let
  lock = builtins.fromJSON (builtins.readFile ../flake.lock);
  flakeCompatRev = lock.nodes.flake-compat.locked.rev;
  flakeCompat = fetchTarball {
    url =
      "https://github.com/edolstra/flake-compat/archive/${flakeCompatRev}.tar.gz";
    sha256 = lock.nodes.flake-compat.locked.narHash;
  };
  flake = ((import flakeCompat) { src = ../.; }).defaultNix;
in rec {
  pkgsSrc = flake.inputs.nixpkgs;
  cargo2nix = flake.inputs.cargo2nix;
  cargo2nixOverlay = cargo2nix.overlays.default;
}