ess/flake.nix

52 lines
1.2 KiB
Nix
Raw Normal View History

2023-09-02 13:31:35 +00:00
{
2025-04-08 14:45:30 +00:00
description = "ess (env sampple sync)";
2024-01-20 00:23:56 +00:00
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
2025-04-08 14:45:30 +00:00
flake-utils.url = "github:numtide/flake-utils";
2024-10-10 17:51:55 +00:00
devenv.url = "github:cachix/devenv";
2024-01-20 00:23:56 +00:00
};
2024-01-20 00:23:56 +00:00
outputs = {
self,
nixpkgs,
2025-04-08 14:45:30 +00:00
flake-utils,
2024-01-20 00:23:56 +00:00
devenv,
2025-04-08 14:45:30 +00:00
} @ inputs:
flake-utils.lib.eachDefaultSystem (
system: let
pkgs = import nixpkgs {
inherit system;
};
in {
packages.default = pkgs.callPackage ./. {};
CGO_ENABLED = 0;
defaultPackage = self.packages.${system}.default;
apps.default = flake-utils.lib.mkApp {
drv = self.packages.${system}.default;
};
2024-01-29 19:41:58 +00:00
2025-04-08 14:45:30 +00:00
devShells = let
pkgs = nixpkgs.legacyPackages.${system};
in {
default = devenv.lib.mkShell {
inherit inputs pkgs;
modules = [
{
packages = with pkgs; [
act
automake
go_1_24
gotools
golangci-lint
go-tools
gopls
svu
];
}
2024-01-20 00:23:56 +00:00
];
2025-04-08 14:45:30 +00:00
};
};
}
);
2023-09-02 13:31:35 +00:00
}