-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathflake.nix
28 lines (27 loc) · 869 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
{
description = "A JS devtool orchestrator";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
manifest = (pkgs.lib.importTOML ./crates/depot/Cargo.toml).package;
pkgs = import nixpkgs { inherit system; };
depot-js = pkgs.rustPlatform.buildRustPackage rec {
pname = manifest.name;
version = manifest.version;
cargoLock.lockFile = ./Cargo.lock;
src = pkgs.lib.cleanSource ./.;
nativeBuildInputs = [ pkgs.git ];
# NOTE: depot's tests have a lot of external dependencies: node, biome, ...
# We'll ignore them for now and figure it out later ;)
doCheck = false;
};
in {
packages = {
default = depot-js;
};
});
}