From 24cccf588c1e611ef29509d1a1c492f4bf3562c8 Mon Sep 17 00:00:00 2001 From: atagen Date: Wed, 20 May 2026 15:50:34 +1000 Subject: [PATCH] add flake --- flake.nix | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 flake.nix diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..b308e52 --- /dev/null +++ b/flake.nix @@ -0,0 +1,37 @@ +{ + description = "toes terminal emulator"; + + inputs = { + nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; + }; + + outputs = + { nixpkgs, ... }: + let + systems = [ + "aarch64-linux" + "x86_64-linux" + ]; + + forAllSystems = nixpkgs.lib.genAttrs systems; + in + { + packages = forAllSystems ( + system: + let + pkgs = import nixpkgs { inherit system; }; + + toes = pkgs.foot.overrideAttrs { + pname = "toes"; + version = "1.26.1"; + src = ./.; + meta.mainProgram = "foot"; + }; + in + { + inherit toes; + default = toes; + } + ); + }; +}