fix up the overlay to not be different-per-system

This commit is contained in:
colin 2022-10-11 02:52:15 -07:00
parent 0f50a8a89f
commit 727f191bcd
2 changed files with 16 additions and 11 deletions

12
default.nix Normal file
View File

@ -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)" ];
};
}

View File

@ -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; };
};
}