-
Notifications
You must be signed in to change notification settings - Fork 55
/
flake.nix
46 lines (46 loc) · 1.04 KB
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
{
description = "Hyprland-rs devshell";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
dream2nix = {
url = "github:71/dream2nix/rust-ws-inherit-version";
};
nci = {
url = "github:yusdacra/nix-cargo-integration";
inputs = {
dream2nix.follows = "dream2nix";
};
};
flake-parts = {
inputs = {
nixpkgs-lib.follows = "nixpkgs";
};
};
};
outputs = inputs @ {
flake-parts,
nci,
...
}:
flake-parts.lib.mkFlake {inherit inputs;} {
imports = [
nci.flakeModule
];
systems = ["x86_64-linux" "aarch64-linux"];
perSystem = {
pkgs,
config,
...
}: let
crateName = "hyprland";
crateOutputs = config.nci.outputs.${crateName};
in {
nci.projects.${crateName}.relPath = "";
nci.crates.${crateName} = {
export = true;
};
devShells.default = crateOutputs.devShell;
packages.default = crateOutputs.packages.release;
};
};
}