add flake

This commit is contained in:
atagen 2026-05-20 15:50:34 +10:00
parent 6ba4c5ff7a
commit 4826aa5e80
2 changed files with 63 additions and 0 deletions

36
flake.nix Normal file
View file

@ -0,0 +1,36 @@
{
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 = ./.;
};
in
{
inherit toes;
default = toes;
}
);
};
}