mirror of
https://github.com/Louis-CFM/coucou.git
synced 2026-12-06 23:24:20 +09:00
72 lines
2.3 KiB
Nix
72 lines
2.3 KiB
Nix
# Maintainer: Dorian Luyet (@DurianTheWAV), with linux/nix/package.nix.
|
|
{
|
|
description = "Coucou: Mochi lives at the top of your screen and keeps an eye on your AI coding agents";
|
|
|
|
# Try it: nix run github:Louis-CFM/coucou
|
|
# On NixOS, add the flake to your inputs and coucou.nixosModules.default to your
|
|
# modules, then in configuration.nix:
|
|
# programs.coucou.enable = true;
|
|
# programs.coucou.desktopShortcut = true; # optional: launcher on the desktop
|
|
# Through the overlay instead, allow it in your own nixpkgs config, since the
|
|
# artwork is not free (see meta.license in linux/nix/package.nix):
|
|
# nixpkgs.overlays = [ inputs.coucou.overlays.default ];
|
|
# nixpkgs.config.allowUnfreePredicate = pkg: lib.getName pkg == "coucou";
|
|
|
|
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
|
|
outputs =
|
|
{ self, nixpkgs }:
|
|
let
|
|
inherit (nixpkgs) lib;
|
|
|
|
systems = [
|
|
"x86_64-linux"
|
|
"aarch64-linux"
|
|
];
|
|
|
|
forAllSystems =
|
|
f:
|
|
lib.genAttrs systems (
|
|
system:
|
|
f (
|
|
import nixpkgs {
|
|
inherit system;
|
|
# Only for this package: building it for yourself is what its
|
|
# license allows.
|
|
config.allowUnfreePredicate = pkg: lib.getName pkg == "coucou";
|
|
}
|
|
)
|
|
);
|
|
in
|
|
{
|
|
packages = forAllSystems (pkgs: {
|
|
coucou = pkgs.callPackage ./linux/nix/package.nix { };
|
|
default = self.packages.${pkgs.stdenv.hostPlatform.system}.coucou;
|
|
});
|
|
|
|
# `programs.coucou.enable = true;` (see linux/nix/nixos-module.nix).
|
|
nixosModules.default = import ./linux/nix/nixos-module.nix self;
|
|
|
|
overlays.default = final: prev: {
|
|
coucou = final.callPackage ./linux/nix/package.nix { };
|
|
};
|
|
|
|
# The toolchain and libraries to work on the Linux app: `nix develop`, then
|
|
# `cd windows && npm ci && npm run tauri dev`.
|
|
devShells = forAllSystems (
|
|
pkgs:
|
|
let
|
|
coucou = self.packages.${pkgs.stdenv.hostPlatform.system}.coucou;
|
|
in
|
|
{
|
|
default = pkgs.mkShell {
|
|
inputsFrom = [ coucou ];
|
|
SHERPA_ONNX_LIB_DIR = "${coucou.sherpaOnnxStatic}/lib";
|
|
};
|
|
}
|
|
);
|
|
|
|
formatter = forAllSystems (pkgs: pkgs.nixfmt);
|
|
};
|
|
}
|