blob: 030667f176577ccbd848ecbf493eac102e822202 (
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.mkLib pkgs;
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/memory";
};
});
}
# vim: ts=2
|