NixOS build

This commit is contained in:
2025-11-30 21:07:41 -08:00
parent f9128a336d
commit e7eb35626c
5 changed files with 25 additions and 22 deletions

View File

@@ -1,21 +1,18 @@
{
description = "Kyle's Text Editor";
description = "kyle's text editor";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
};
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
outputs =
{ self, nixpkgs }:
outputs = inputs @ { self, nixpkgs, ... }:
let
pkgs = import nixpkgs { system = "x86_64-linux"; };
in
{
packages.x86_64-linux = {
default = pkgs.callPackage ./default-nogui.nix { };
kge = pkgs.callPackage ./default-gui.nix { };
kte = pkgs.callPackage ./default-nogui.nix { };
full = pkgs.callPackage ./default.nix { };
};
eachSystem = nixpkgs.lib.genAttrs nixpkgs.lib.systems.flakeExposed;
pkgsFor = system: import nixpkgs { inherit system; };
in {
packages = eachSystem (system: {
default = (pkgsFor system).callPackage ./default-nogui.nix { };
kge = (pkgsFor system).callPackage ./default-gui.nix { };
kte = (pkgsFor system).callPackage ./default-nogui.nix { };
full = (pkgsFor system).callPackage ./default.nix { };
});
};
}
}