aboutsummaryrefslogtreecommitdiffhomepage
path: root/flake.nix
diff options
context:
space:
mode:
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix35
1 files changed, 35 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix
new file mode 100644
index 00000000..d79a3c14
--- /dev/null
+++ b/flake.nix
@@ -0,0 +1,35 @@
+{
+ 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
+ (pkgs.writeShellScriptBin "build" ''
+ go build -v -ldflags '-s -w -X main.Version=flake'
+ '')
+ ];
+ };
+ }
+ );
+ };
+} \ No newline at end of file