This commit is contained in:
polwex 2026-04-19 04:33:19 +07:00
parent f81d5604ae
commit d88355267a
4 changed files with 60 additions and 73 deletions

View file

@ -1,5 +1,5 @@
{
description = "leo-ed typing app";
description = "kotsukotsu typing app";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
@ -7,52 +7,39 @@
bun2nix.inputs.nixpkgs.follows = "nixpkgs";
};
nixConfig = {
extra-substituters = [
"https://cache.nixos.org"
"https://nix-community.cachix.org"
];
extra-trusted-public-keys = [
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
];
outputs = {
self,
nixpkgs,
bun2nix,
}: let
systems = ["x86_64-linux" "aarch64-linux"];
forAllSystems = nixpkgs.lib.genAttrs systems;
in {
packages = forAllSystems (system: let
pkgs = import nixpkgs {
inherit system;
overlays = [bun2nix.overlays.default];
};
in rec {
kotsukotsu = pkgs.callPackage ./nix/package.nix {};
default = kotsukotsu;
});
devShells = forAllSystems (system: let
pkgs = import nixpkgs {
inherit system;
overlays = [bun2nix.overlays.default];
};
in {
default = pkgs.mkShell {
packages = with pkgs; [
bun
bun2nix
nodejs
];
};
});
nixosModules.default = import ./nix/module.nix;
};
outputs = { self, nixpkgs, bun2nix }:
let
systems = [ "x86_64-linux" "aarch64-linux" ];
forAllSystems = nixpkgs.lib.genAttrs systems;
in
{
packages = forAllSystems (system:
let
pkgs = import nixpkgs {
inherit system;
overlays = [ bun2nix.overlays.default ];
};
in
rec {
leo-ed = pkgs.callPackage ./nix/package.nix { };
default = leo-ed;
});
devShells = forAllSystems (system:
let
pkgs = import nixpkgs {
inherit system;
overlays = [ bun2nix.overlays.default ];
};
in
{
default = pkgs.mkShell {
packages = with pkgs; [
bun
bun2nix
nodejs
];
};
});
nixosModules.default = import ./nix/module.nix;
};
}