blob: 75e6b2a6d7c945459e9f575cdd471a59adf9bd7e (
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
36
37
38
39
40
41
42
|
{
description = ""; # TODO fill
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
crane = {
url = "github:ipetkov/crane";
inputs = {
nixpkgs.follows = "nixpkgs";
flake-utils.follows = "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;
};
appName = ""; # TODO fill
in {
packages.default = craneBuild;
legacyPackages.default = craneBuild;
app.default = {
type = "app";
program = "${self.packages.${system}.default}/bin/${appName}";
};
});
}
# vim: ts=2
|