-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
36 lines (33 loc) · 1.17 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
{
description = "System to open terminals in an inteligent way";
inputs = {
fenix = {
url = "github:nix-community/fenix/monthly";
inputs.nixpkgs.follows = "nixpkgs";
};
nixpkgs.url = "nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils, fenix }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
rust = fenix.packages.${system}.complete.toolchain;
rustPlatform = pkgs.makeRustPlatform {
cargo = rust;
rustc = rust;
};
in rec {
nixpkgs.overlays = [ fenix.overlays.complete ];
devShells.default = pkgs.mkShell {
buildInputs = [ rust pkgs.lldb_9 pkgs.sccache pkgs.mold pkgs.clang ];
};
overlays.default = (self: super: { new-terminal-hyprland = packages.default; });
packages.default = rustPlatform.buildRustPackage {
name = "new-termainl-hyprland";
src = ./.;
cargoSha256 = "sha256-q87uXENhyAKjy2VB5Il/BBPJIcjAbOsHsKQTPaGrzZc=";
target = "x86_64-unknown-linux-gnu";
};
});
}