Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
willcrichton committed Nov 19, 2024
2 parents 16c5325 + e7464c5 commit 4a25759
Show file tree
Hide file tree
Showing 3 changed files with 93 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
target
target
.envrc
.direnv
result
61 changes: 61 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 28 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,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;
};
});
}

0 comments on commit 4a25759

Please sign in to comment.