diff --git a/default.nix b/default.nix new file mode 100644 index 0000000..c1009ef --- /dev/null +++ b/default.nix @@ -0,0 +1,17 @@ +{ depot, pkgs, ... }: + +pkgs.rustPlatform.buildRustPackage { + name = "planet-mars"; + src = depot.third_party.gitignoreSource ./.; + cargoLock.lockFile = ./Cargo.lock; + + nativeBuildInputs = [ pkgs.pkg-config ]; + buildInputs = [ pkgs.openssl ]; + + # planet-mars is mirrored to Github. + passthru.meta.ci.extraSteps.github = depot.tools.releases.filteredGitPush { + filter = ":/web/planet-mars"; + remote = "git@github.com:thkoch2001/planet-mars.git"; + ref = "refs/heads/master"; + }; +}