aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Perry <np@nathanperry.dev>2021-01-23 04:41:31 -0500
committerNathan Perry <np@nathanperry.dev>2021-01-23 04:41:31 -0500
commit709a6dcb0dd29dd85e6bf267555c684ee5b8980f (patch)
treebef62838db99486eb3aaaa09ed82c69277cd4d9d
parent4d38dd872ae39d3faa34afafc7edc34dbf8ad4c1 (diff)
specfy branch in git dep for offline build
-rw-r--r--Cargo.toml1
-rw-r--r--flake.nix3
2 files changed, 2 insertions, 2 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 5033f2a..d1dff83 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -44,3 +44,4 @@ envconfig_derive = "^0.8"
default-features = false
features = ["builder", "cache", "client", "framework", "gateway", "http", "model", "utils", "voice", "standard_framework", "rustls_backend"]
git = "https://github.com/mammothbane/serenity"
+branch = "master"
diff --git a/flake.nix b/flake.nix
index 76207cf..708daa8 100644
--- a/flake.nix
+++ b/flake.nix
@@ -58,9 +58,8 @@
src = pkgs.lib.cleanSource ./.;
- cargoBuildOptions = old: old ++ [ "--offline" ];
-
buildInputs = deps;
+ remapPathPrefix = true;
};
in {