intake/flake.nix
Tim Van Baak 71978dbae4 Ditch flake-parts for now
I can try it again after I know I can get the module and vm working again
2025-02-12 11:37:33 -08:00

50 lines
1010 B
Nix

{
description = "Universal and extensible feed aggregator";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
};
outputs =
{
self,
nixpkgs,
}:
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
in
{
formatter = nixpkgs.legacyPackages.${system}.nixfmt-rfc-style;
packages.${system} =
let
pkgs = (
import nixpkgs {
inherit system;
overlays = [ self.overlays.default ];
}
);
in
{
default = self.packages.${system}.intake;
inherit (pkgs) intake;
};
devShells.${system}.default = pkgs.mkShell {
packages = [
pkgs.go
pkgs.gopls
pkgs.go-tools
pkgs.gotools
pkgs.cobra-cli
pkgs.air
];
};
overlays.default = final: prev: {
intake = final.callPackage ./package.nix { };
};
};
}