-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathflake.nix
More file actions
64 lines (56 loc) · 1.47 KB
/
Copy pathflake.nix
File metadata and controls
64 lines (56 loc) · 1.47 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
{
description = "Native RDP server for Hyprland";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
};
outputs =
{ self, nixpkgs }:
let
lib = nixpkgs.lib;
supportedSystems = [ "x86_64-linux" ];
forAllSystems = lib.genAttrs supportedSystems;
pkgsFor = system: import nixpkgs { inherit system; };
in
{
packages = forAllSystems (
system:
let
pkgs = pkgsFor system;
in
{
hypr-rdp = pkgs.callPackage ./pkg/nix/package.nix { };
default = self.packages.${system}.hypr-rdp;
}
);
apps = forAllSystems (system: {
hypr-rdp = {
type = "app";
program = "${self.packages.${system}.hypr-rdp}/bin/hypr-rdp";
};
default = self.apps.${system}.hypr-rdp;
});
checks = forAllSystems (system: {
hypr-rdp = self.packages.${system}.hypr-rdp;
});
devShells = forAllSystems (
system:
let
pkgs = pkgsFor system;
in
{
default = pkgs.mkShell {
inputsFrom = [ self.packages.${system}.hypr-rdp ];
packages = with pkgs; [
cargo
clippy
pulseaudio
rustc
rustfmt
];
RUST_SRC_PATH = "${pkgs.rustPlatform.rustLibSrc}";
};
}
);
formatter = forAllSystems (system: (pkgsFor system).nixfmt-rfc-style);
};
}