Ophestra Umiker
190eb088bc
Since we link libxcb as well now this is needed in the dev shell for it to build properly without impure. Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
36 lines
843 B
Nix
36 lines
843 B
Nix
{
|
|
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
|
|
xorg.libxcb
|
|
(pkgs.writeShellScriptBin "build" ''
|
|
go build -v -ldflags '-s -w -X main.Version=flake'
|
|
'')
|
|
];
|
|
};
|
|
}
|
|
);
|
|
};
|
|
} |