20 lines
590 B
Nix
20 lines
590 B
Nix
|
info: final: prev:
|
||
|
rec {
|
||
|
inherit (builtins) attrValues attrNames getFlake typeOf;
|
||
|
currentSystem = info.currentSystem;
|
||
|
|
||
|
dragnpkgs = getFlake "dragnpkgs";
|
||
|
dragnpkgs-unstable = getFlake "dragnpkgs-unstable";
|
||
|
pkgs = dragnpkgs.legacyPackages.${currentSystem};
|
||
|
pkgs-unstable = dragnpkgs-unstable.legacyPackages.${currentSystem};
|
||
|
inherit (pkgs) lib;
|
||
|
|
||
|
f = getFlake "git+file:${builtins.getEnv "PWD"}";
|
||
|
fp =
|
||
|
if (builtins.hasAttr "legacyPackages" f) then
|
||
|
f.legacyPackages.${currentSystem}
|
||
|
else
|
||
|
f.packages.${currentSystem};
|
||
|
fs = f.devShells.${currentSystem};
|
||
|
}
|