2024-07-11 01:10:35 +09:00
|
|
|
{
|
|
|
|
description = "ego development environment";
|
|
|
|
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs/24.05";
|
|
|
|
};
|
|
|
|
|
|
|
|
outputs = { self, nixpkgs }:
|
|
|
|
let
|
|
|
|
supportedSystems = [ "x86_64-linux" ];
|
|
|
|
forAllSystems = f: nixpkgs.lib.genAttrs supportedSystems (system: f system);
|
|
|
|
in
|
|
|
|
{
|
|
|
|
devShells = forAllSystems
|
|
|
|
(system:
|
|
|
|
let
|
|
|
|
pkgs = import nixpkgs {
|
|
|
|
inherit system;
|
|
|
|
};
|
|
|
|
in
|
|
|
|
{
|
|
|
|
default = with pkgs; mkShell
|
|
|
|
{
|
|
|
|
packages = [
|
|
|
|
clang
|
|
|
|
acl
|
2024-07-15 00:38:11 +09:00
|
|
|
xorg.libxcb
|
2024-07-11 01:10:35 +09:00
|
|
|
(pkgs.writeShellScriptBin "build" ''
|
|
|
|
go build -v -ldflags '-s -w -X main.Version=flake'
|
|
|
|
'')
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
);
|
|
|
|
};
|
|
|
|
}
|