Browse Source

seperate overlay

main
Milan 1 month ago
parent
commit
73f55f5d99
  1. 18
      nix/default.nix
  2. 4
      nix/overlay.nix

18
nix/default.nix

@ -1,13 +1,5 @@
{ sources ? import ./sources.nix
, nixpkgs ? sources.nixpkgs
, pkgs ? import nixpkgs {} }:
let
callPackage = pkgs.lib.callPackageWith (pkgs // newpkgs);
newpkgs = {
ever-given = callPackage sources.ever-given {};
rusty-lg-backend = callPackage ./backend.nix {};
rusty-lg-frontend = callPackage ./frontend.nix {};
};
in newpkgs
import (import ./sources.nix).nixpkgs {
overlays = [
(import ./overlay.nix)
];
}

4
nix/overlay.nix

@ -0,0 +1,4 @@
final: prev: {
rusty-lg-backend = final.callPackage ./backend.nix {};
rusty-lg-frontend = final.callPackage ./frontend.nix {};
}
Loading…
Cancel
Save