Commit d9ed0517 authored by Lemon Lam's avatar Lemon Lam
Browse files

warpgate: 0.17.0 -> 0.18.0

parent 1ab1a748
Loading
Loading
Loading
Loading
+0 −14
Original line number Diff line number Diff line
diff --git a/.cargo/config.toml b/.cargo/config.toml
index 8ab4225..8e0c812 100644
--- a/.cargo/config.toml
+++ b/.cargo/config.toml
@@ -1,8 +1,5 @@
 # https://github.com/rust-lang/cargo/issues/5376#issuecomment-2163350032
 [target.'cfg(all())']
 rustflags = [
-    "--cfg", "tokio_unstable",
-    "-Zremap-cwd-prefix=/reproducible-cwd",
-    "--remap-path-prefix=$HOME=/reproducible-home",
-    "--remap-path-prefix=$PWD=/reproducible-pwd",
+    "--cfg", "tokio_unstable"
 ]
+10 −6
Original line number Diff line number Diff line
@@ -20,7 +20,7 @@ rustPlatform.buildRustPackage (

      patches = [ ./web-ui-package-json.patch ];

      npmDepsHash = "sha256-1zCxKAH2IAKSFdL8Pyd8dJi0i8Y5mgYcWNKVpiQszc0=";
      npmDepsHash = "sha256-jgsNF93DkEVgPGzdi192HKoSHPYhdrtog28jZvOLK6E=";

      nativeBuildInputs = [ openapi-generator-cli ];

@@ -35,29 +35,33 @@ rustPlatform.buildRustPackage (
  in
  {
    pname = "warpgate";
    version = "0.17.0";
    version = "0.18.0";

    src = fetchFromGitHub {
      owner = "warp-tech";
      repo = "warpgate";
      tag = "v${finalAttrs.version}";
      hash = "sha256-nr0z8c0o5u4Rqs9pFUaxnasRHUhwT3qQe5+JNV+LObg=";
      hash = "sha256-GLY/VGEKB6gFNTbBlbhpmqQZ62pk2wd6JwWwy4Tz0FE=";
    };

    cargoHash = "sha256-pIr5Z7rp+dYOuKYnlsBdya6MqAdL0U2gUhwXvLfmM34=";
    cargoHash = "sha256-hwAtj8tTDsYgzuDobMg97wepKKIpohSVClyRiaDd+8w=";

    patches = [
      (replaceVars ./hardcode-version.patch { inherit (finalAttrs) version; })
      ./disable-rust-reproducible-build.patch
    ];

    RUSTFLAGS = "--cfg tokio_unstable";

    buildFeatures = [
      "postgres"
      "mysql"
      "sqlite"
    ];

    preBuild = ''ln -rs "${warpgate-web}" warpgate-web/dist'';
    preBuild = ''
      rm -r .cargo/
      ln -rs "${warpgate-web}" warpgate-web/dist
    '';

    # skip check, project included tests require python stuff and docker
    doCheck = false;