Unverified Commit 97f8783e authored by Mathew Polzin's avatar Mathew Polzin Committed by GitHub
Browse files

bruno: 3.1.1 -> 3.1.3 (#493448)

parents 783e455e 75f65c3a
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -44,6 +44,17 @@ buildNpmPackage {

  env.ELECTRON_SKIP_BINARY_DOWNLOAD = 1;

  # remove giflib dependency
  npmRebuildFlags = [ "--ignore-scripts" ];
  preBuild = ''
    # upstream keeps removing and adding back canvas, only patch it when it is present
    if [[ -e node_modules/canvas/binding.gyp ]]; then
      substituteInPlace node_modules/canvas/binding.gyp \
        --replace-fail "'with_gif%': '<!(node ./util/has_lib.js gif)'" "'with_gif%': 'false'"
      npm rebuild
    fi
  '';

  buildPhase = ''
    runHook preBuild

+2 −2
Original line number Diff line number Diff line
@@ -21,13 +21,13 @@

buildNpmPackage rec {
  pname = "bruno";
  version = "3.1.1";
  version = "3.1.3";

  src = fetchFromGitHub {
    owner = "usebruno";
    repo = "bruno";
    tag = "v${version}";
    hash = "sha256-XoGD8lDc6QGka17KTvVX3gEj1fo+4NWpUM8mLA5F+i4=";
    hash = "sha256-6YC4+gQDqo66mZjV4mVLPTdOaEUXxn+0PpZ0Gd8aeqU=";

    postFetch = ''
      ${lib.getExe npm-lockfile-fix} $out/package-lock.json