NixOS build
This commit is contained in:
@@ -1,8 +1,9 @@
|
|||||||
|
#include <algorithm>
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
|
#include <cstdlib>
|
||||||
#include <filesystem>
|
#include <filesystem>
|
||||||
#include <limits>
|
#include <limits>
|
||||||
#include <cstdlib>
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
#include <imgui.h>
|
#include <imgui.h>
|
||||||
|
|||||||
@@ -45,6 +45,8 @@ stdenv.mkDerivation {
|
|||||||
installManPage ../docs/kte.1
|
installManPage ../docs/kte.1
|
||||||
installManPage ../docs/kge.1
|
installManPage ../docs/kge.1
|
||||||
|
|
||||||
|
mkdir -p $out/share/icons
|
||||||
|
cp ../kge.png $out/share/icons/
|
||||||
|
|
||||||
runHook postInstall
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|||||||
@@ -45,6 +45,9 @@ stdenv.mkDerivation {
|
|||||||
installManPage ../docs/kte.1
|
installManPage ../docs/kte.1
|
||||||
installManPage ../docs/kge.1
|
installManPage ../docs/kge.1
|
||||||
|
|
||||||
|
mkdir -p $out/share/icons
|
||||||
|
cp ../kge.png $out/share/icons/
|
||||||
|
|
||||||
runHook postInstall
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|||||||
10
flake.lock
generated
10
flake.lock
generated
@@ -2,15 +2,15 @@
|
|||||||
"nodes": {
|
"nodes": {
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1764242076,
|
"lastModified": 1764517877,
|
||||||
"narHash": "sha256-sKoIWfnijJ0+9e4wRvIgm/HgE27bzwQxcEmo2J/gNpI=",
|
"narHash": "sha256-pp3uT4hHijIC8JUK5MEqeAWmParJrgBVzHLNfJDZxg4=",
|
||||||
"owner": "nixos",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "2fad6eac6077f03fe109c4d4eb171cf96791faa4",
|
"rev": "2d293cbfa5a793b4c50d17c05ef9e385b90edf6c",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "nixos",
|
"owner": "NixOS",
|
||||||
"ref": "nixos-unstable",
|
"ref": "nixos-unstable",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
|
|||||||
29
flake.nix
29
flake.nix
@@ -1,21 +1,18 @@
|
|||||||
{
|
{
|
||||||
description = "Kyle's Text Editor";
|
description = "kyle's text editor";
|
||||||
|
|
||||||
inputs = {
|
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||||
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
|
|
||||||
};
|
|
||||||
|
|
||||||
outputs =
|
outputs = inputs @ { self, nixpkgs, ... }:
|
||||||
{ self, nixpkgs }:
|
|
||||||
let
|
let
|
||||||
pkgs = import nixpkgs { system = "x86_64-linux"; };
|
eachSystem = nixpkgs.lib.genAttrs nixpkgs.lib.systems.flakeExposed;
|
||||||
in
|
pkgsFor = system: import nixpkgs { inherit system; };
|
||||||
{
|
in {
|
||||||
packages.x86_64-linux = {
|
packages = eachSystem (system: {
|
||||||
default = pkgs.callPackage ./default-nogui.nix { };
|
default = (pkgsFor system).callPackage ./default-nogui.nix { };
|
||||||
kge = pkgs.callPackage ./default-gui.nix { };
|
kge = (pkgsFor system).callPackage ./default-gui.nix { };
|
||||||
kte = pkgs.callPackage ./default-nogui.nix { };
|
kte = (pkgsFor system).callPackage ./default-nogui.nix { };
|
||||||
full = pkgs.callPackage ./default.nix { };
|
full = (pkgsFor system).callPackage ./default.nix { };
|
||||||
};
|
});
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user