blob: 0d63e121ccd8205c50d59f9e442a3f4e5b9d95bb (
plain) (
blame)
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 = "A smart way to check your cpu usage";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
crane.url = "github:ipetkov/crane";
crane.inputs.nixpkgs.follows = "nixpkgs";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = {
self,
nixpkgs,
crane,
flake-utils,
...
}:
flake-utils.lib.eachDefaultSystem (system: let
craneLib = crane.lib.${system};
craneBuild = craneLib.buildPackage {
src = craneLib.cleanCargoSource ./.;
doCheck = true;
};
in {
packages.default = craneBuild;
legacyPackages.default = craneBuild;
app.default = {
type = "app";
program = "${self.packages.${system}.default}/bin/cpu_usage";
};
});
}
# vim: ts=2
|