feat: full poc
This commit is contained in:
parent
b76036038e
commit
a8847b93cf
14 changed files with 630 additions and 323 deletions
19
flake.nix
19
flake.nix
|
@ -39,27 +39,38 @@
|
|||
RUST_SRC_DIR = "${pkgs.rustPlatform.rustLibSrc}";
|
||||
RUST_LOG = "debug";
|
||||
shellHook = ''
|
||||
cp -R ${niri-flake.inputs.niri-unstable} niri/
|
||||
cp --no-preserve=mode,ownership -R ${niri-flake.inputs.niri-unstable} niri/
|
||||
'';
|
||||
};
|
||||
});
|
||||
|
||||
packages = forAllSystems (pkgs: {
|
||||
unstable = deps.${pkgs.system}.naersk.buildPackage {
|
||||
src = ./.;
|
||||
RUSTFLAGS = "--cfg tokio_unstable";
|
||||
preConfigure = ''
|
||||
cp -R ${niri-flake.inputs.niri-unstable} niri/
|
||||
'';
|
||||
meta.mainProgram = "niri-tag";
|
||||
};
|
||||
stable = deps.${pkgs.system}.naersk.buildPackage {
|
||||
src = ./.;
|
||||
RUSTFLAGS = "--cfg tokio_unstable";
|
||||
preBuild = ''
|
||||
cp -R ${niri-flake.inputs.niri-stable} niri/
|
||||
'';
|
||||
meta.mainProgram = "niri-tag";
|
||||
};
|
||||
default = self.packages.${pkgs.system}.unstable;
|
||||
});
|
||||
# TODO make module that compiles based on niri version
|
||||
|
||||
nixosModules.default = self.nixosModules.niri-tag;
|
||||
nixosModules.niri-tag =
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
imports = [
|
||||
./module.nix
|
||||
];
|
||||
services.niri-tag.package = self.packages.${pkgs.system}.unstable;
|
||||
};
|
||||
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue