gotem/flake.nix

46 lines
963 B
Nix
Raw Normal View History

2023-12-25 16:57:44 -05:00
{
2025-03-16 12:51:55 -04:00
description = "Get your git";
2023-12-25 16:57:44 -05:00
inputs = {
2025-03-16 12:51:55 -04:00
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11";
2023-12-25 16:57:44 -05:00
flake-utils.url = "github:numtide/flake-utils";
};
2025-03-16 12:51:55 -04:00
outputs =
{
self,
nixpkgs,
flake-utils,
...
}:
2023-12-25 16:57:44 -05:00
{
overlays.default = final: prev: {
inherit (self.packages.${prev.system}) workon;
};
2025-03-16 12:51:55 -04:00
}
// flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = nixpkgs.legacyPackages.${system};
2023-12-25 16:57:44 -05:00
in
{
packages.gotem = pkgs.buildGoModule {
pname = "gotem";
version = "0.1.0";
src = ./.;
2025-03-16 12:51:55 -04:00
vendorHash = "sha256-zxq2/zQXXGFyS/oeZ18E2359f/v3GV9cZCE0HboOfsM=";
2023-12-25 16:57:44 -05:00
};
packages.default = self.packages.${system}.gotem;
devShells.default = pkgs.mkShell {
name = "gotem";
2025-03-16 12:51:55 -04:00
buildInputs = with pkgs; [
cobra-cli
go
gopls
];
2023-12-25 16:57:44 -05:00
};
}
);
}