-
Notifications
You must be signed in to change notification settings - Fork 4
/
flake.nix
34 lines (29 loc) · 842 Bytes
/
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
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
flake-utils.url = "github:numtide/flake-utils";
nix-skyline-rs.url = "github:Naxdy/nix-skyline-rs";
nix-skyline-rs.inputs.nixpkgs.follows = "nixpkgs";
};
outputs =
{ self
, flake-utils
, nix-skyline-rs
, ...
}: (flake-utils.lib.eachDefaultSystem (system:
{
packages = {
default = self.packages.${system}.less-delay;
less-delay =
let
cargoTOML = builtins.fromTOML (builtins.readFile ./Cargo.toml);
in
nix-skyline-rs.lib.${system}.mkNroPackage {
pname = cargoTOML.package.name;
version = cargoTOML.package.version;
src = self;
};
};
devShells.default = nix-skyline-rs.devShells.${system}.default;
}));
}