fix up the overlay to not be different-per-system
This commit is contained in:
parent
0f50a8a89f
commit
727f191bcd
|
@ -0,0 +1,12 @@
|
|||
{ pkgs }:
|
||||
|
||||
with pkgs;
|
||||
{
|
||||
uninsane-dot-org = with pkgs; stdenv.mkDerivation {
|
||||
name = "uninsane-dot-org";
|
||||
src = ./.;
|
||||
buildInputs = [ rsync zola ];
|
||||
nativeBuildInputs = [ gnumake ];
|
||||
installFlags = [ "PREFIX=$(out)" ];
|
||||
};
|
||||
}
|
15
flake.nix
15
flake.nix
|
@ -11,20 +11,13 @@
|
|||
pkgs = import nixpkgs { inherit system; };
|
||||
in
|
||||
rec {
|
||||
packages.uninsane-dot-org = with pkgs; stdenv.mkDerivation {
|
||||
name = "uninsane-dot-org";
|
||||
src = self;
|
||||
buildInputs = [ rsync zola ];
|
||||
nativeBuildInputs = [ gnumake ];
|
||||
installFlags = [ "PREFIX=$(out)" ];
|
||||
};
|
||||
overlay = final: prev: {
|
||||
uninsane-dot-org = packages.uninsane-dot-org;
|
||||
};
|
||||
packages = import ./default.nix { inherit pkgs; };
|
||||
defaultPackage = packages.uninsane-dot-org;
|
||||
|
||||
devShells.default = with pkgs; mkShell {
|
||||
buildInputs = with packages.uninsane-dot-org; (buildInputs ++ nativeBuildInputs);
|
||||
};
|
||||
});
|
||||
}) // {
|
||||
overlay = final: prev: import ./default.nix { pkgs = prev; };
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue