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,8 +1,9 @@
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <filesystem>
#include <limits>
#include <cstdlib>
#include <string>
#include <imgui.h>

View File

@@ -45,6 +45,8 @@ stdenv.mkDerivation {
installManPage ../docs/kte.1
installManPage ../docs/kge.1
mkdir -p $out/share/icons
cp ../kge.png $out/share/icons/
runHook postInstall
'';

View File

@@ -45,6 +45,9 @@ stdenv.mkDerivation {
installManPage ../docs/kte.1
installManPage ../docs/kge.1
mkdir -p $out/share/icons
cp ../kge.png $out/share/icons/
runHook postInstall
'';
}

10
flake.lock generated
View File

@@ -2,15 +2,15 @@
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1764242076,
"narHash": "sha256-sKoIWfnijJ0+9e4wRvIgm/HgE27bzwQxcEmo2J/gNpI=",
"owner": "nixos",
"lastModified": 1764517877,
"narHash": "sha256-pp3uT4hHijIC8JUK5MEqeAWmParJrgBVzHLNfJDZxg4=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "2fad6eac6077f03fe109c4d4eb171cf96791faa4",
"rev": "2d293cbfa5a793b4c50d17c05ef9e385b90edf6c",
"type": "github"
},
"original": {
"owner": "nixos",
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"

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 { };
});
};
}
}