Unverified Commit cfd3a8f7 authored by Damien Cassou's avatar Damien Cassou Committed by GitHub
Browse files

swagger-typescript-api: 13.6.5 -> 13.7.2 (#514358)

parents b5e18cb4 da99a944
Loading
Loading
Loading
Loading
+11 −3
Original line number Diff line number Diff line
@@ -9,10 +9,10 @@
}:
let
  pname = "swagger-typescript-api";
  version = "13.6.5";
  version = "13.7.2";

  node-modules-hash = {
    "x86_64-linux" = "sha256-N19ocmrqQ8SpDNhmpCNC1wdWGrkBXCdio+ZfEXceaUA=";
    "x86_64-linux" = "sha256-1Wy9RWNvMmxSY72Qcam/jCVwurGk4ms9PTR5tt6t03I=";
  };
in
stdenv.mkDerivation (finalAttrs: {
@@ -22,19 +22,27 @@ stdenv.mkDerivation (finalAttrs: {
    owner = "acacode";
    repo = "swagger-typescript-api";
    rev = "v${version}";
    hash = "sha256-DAgE88JBJLNkg9WOO2qVI2dpdfNFvvBIcy++S/PX2NY=";
    hash = "sha256-2sAE3wD/vUjaxvlhfrBRSErB3PsjQfi4UAcc4tU0le4=";
  };

  node_modules = stdenv.mkDerivation {
    inherit (finalAttrs) src version;
    pname = "${pname}-node_modules";

    impureEnvVars = lib.fetchers.proxyImpureEnvVars ++ [
      "GIT_PROXY_COMMAND"
      "SOCKS_SERVER"
    ];

    nativeBuildInputs = [
      bun
      writableTmpDirAsHomeHook
    ];

    dontConfigure = true;
    # Prevent patchShebangs from rewriting node_modules/.bin shebangs to store
    # paths, which would make this fixed-output derivation's output hash unstable.
    dontPatchShebangs = true;

    buildPhase = ''
      runHook preBuild