mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-11-16 05:41:16 +01:00
Flake lock file updates:
• Updated input 'crane':
'github:ipetkov/crane/d599ae4847e7f87603e7082d73ca673aa93c916d' (2025-09-06)
→ 'github:ipetkov/crane/a669fe77a8b0cd6f11419d89ea45a16691ca5121' (2025-09-18)
• Updated input 'nixpkgs':
'github:nixos/nixpkgs/c23193b943c6c689d70ee98ce3128239ed9e32d1' (2025-09-13)
→ 'github:nixos/nixpkgs/8eaee110344796db060382e15d3af0a9fc396e0e' (2025-09-19)
• Updated input 'rust-overlay':
'github:oxalica/rust-overlay/09442765a05c2ca617c20ed68d9613da92a2d96b' (2025-09-15)
→ 'github:oxalica/rust-overlay/d2bac276ac7e669a1f09c48614538a37e3eb6d0f' (2025-09-22)
60 lines
1.5 KiB
Nix
60 lines
1.5 KiB
Nix
{
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
rust-overlay.url = "github:oxalica/rust-overlay";
|
|
crane.url = "github:ipetkov/crane";
|
|
};
|
|
|
|
outputs = inputs:
|
|
with inputs;
|
|
flake-utils.lib.eachDefaultSystem (
|
|
system: let
|
|
overlays = [
|
|
(import rust-overlay)
|
|
];
|
|
|
|
pkgs = (import nixpkgs) {
|
|
inherit system overlays;
|
|
};
|
|
|
|
inherit (pkgs) lib;
|
|
|
|
toolchain = pkgs.rust-bin.fromRustupToolchainFile ./rust-toolchain.toml;
|
|
craneLib = (crane.mkLib pkgs).overrideToolchain toolchain;
|
|
|
|
src = craneLib.cleanCargoSource ./.;
|
|
version = "0.1.0";
|
|
pname = "komorebi";
|
|
|
|
commonArgs = {
|
|
inherit src version pname;
|
|
nativeBuildInputs = with pkgs; [];
|
|
doCheck = false;
|
|
buildInputs = with pkgs; [
|
|
gcc
|
|
libiconv
|
|
];
|
|
};
|
|
|
|
cargoArtifacts = craneLib.buildDepsOnly commonArgs;
|
|
|
|
komorebi = craneLib.buildPackage (
|
|
commonArgs
|
|
// {
|
|
cargoExtraArgs = "-p komorebi -p komorebic";
|
|
}
|
|
);
|
|
in {
|
|
devShells = flake-utils.lib.flattenTree {
|
|
default = import ./shell.nix {inherit pkgs;};
|
|
};
|
|
|
|
packages = flake-utils.lib.flattenTree rec {
|
|
inherit komorebi;
|
|
default = komorebi;
|
|
};
|
|
}
|
|
);
|
|
}
|