-
Notifications
You must be signed in to change notification settings - Fork 238
/
flake.nix
54 lines (49 loc) · 1.38 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
utils.url = "github:gytis-ivaskevicius/flake-utils-plus";
};
outputs = inputs@{ self, utils, ... }:
utils.lib.mkFlake rec {
inherit self inputs;
supportedSystems = [
"aarch64-linux"
"aarch64-darwin"
"i686-linux"
"x86_64-darwin"
"x86_64-linux"
];
outputsBuilder = channels: with channels;
let
package = with nixpkgs; rustPlatform.buildRustPackage {
pname = "nixpacks";
version = "1.29.0";
src = ./.;
cargoLock = {
lockFile = ./Cargo.lock;
};
# For tooling like rust-analyzer
RUST_SRC_PATH = "${rustPlatform.rustLibSrc}";
doCheck = false;
meta = with nixpkgs.lib; {
description = "App source + Nix packages + Docker = Image";
homepage = "https://github.com/railwayapp/nixpacks";
license = licenses.mit;
maintainers = [ maintainers.zoedsoupe ];
};
};
in {
packages = {
nixpacks = package;
default = package;
};
devShells = {
nixpacks = package;
default = package;
};
checks = {
nixpacks = package;
};
};
};
}