uninsane/flake.nix

28 lines
742 B
Nix

{
description = "https://uninsane.org blog";
inputs.nixpkgs.url = "nixpkgs/nixos-23.11";
outputs = { self, nixpkgs }:
let
pkgs = import nixpkgs {
system = "x86_64-linux";
overlays = [ self.outputs.overlays.default ];
};
in with self.outputs.packages.x86_64-linux;
{
overlays.default = final: prev: with final; {
uninsane-dot-org = callPackage ./default.nix { };
};
packages.x86_64-linux = {
# avoid exposing ALL of nixpkgs
inherit (pkgs) uninsane-dot-org;
};
defaultPackage.x86_64-linux = uninsane-dot-org;
# doesn't work... ?
# devShells.default = pkgs.mkShell {
# buildInputs = with uninsane-dot-org; (buildInputs ++ nativeBuildInputs);
# };
};
}