Skip to content

Commit

Permalink
hedgedoc: 1.9.9 -> 1.10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSandro2000 authored and cafkafk committed Sep 10, 2024
1 parent 44a71ff commit edd8462
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions pkgs/servers/web-apps/hedgedoc/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
}:

let
version = "1.9.9";
version = "1.10.0";

src = fetchFromGitHub {
owner = "hedgedoc";
repo = "hedgedoc";
rev = version;
hash = "sha256-6eKTgEZ+YLoSmPQWBS95fJ+ioIxeTVlT+moqslByPPw=";
hash = "sha256-cRIpcoD9WzLYxKYpkvhRxUmeyJR5z2QyqApzWvQND+s=";
};

# we cannot use fetchYarnDeps because that doesn't support yarn 2/berry lockfiles
Expand All @@ -42,7 +42,7 @@ let
'';

outputHashMode = "recursive";
outputHash = "sha256-Ga+tl4oZlum43tdfez1oWGMHZAfyePGl47S+9NRRvW8=";
outputHash = "sha256-RV9xzNVE4//tPVWVaET78ML3ah+hkZ8x6mTAxe5/pdE=";
};

in stdenv.mkDerivation {
Expand All @@ -51,12 +51,12 @@ in stdenv.mkDerivation {

nativeBuildInputs = [
makeBinaryWrapper
(python3.withPackages (ps: with ps; [ setuptools ])) # required to build sqlite3 bindings
yarn
python3 # needed for sqlite node-gyp
];

buildInputs = [
nodejs
nodejs # for shebangs
];

dontConfigure = true;
Expand All @@ -67,15 +67,8 @@ in stdenv.mkDerivation {
export HOME=$(mktemp -d)
yarn config set enableTelemetry 0
yarn config set cacheFolder ${offlineCache}
export npm_config_nodedir=${nodejs} # prevent node-gyp from downloading headers
# This will fail but create the sqlite3 files we can patch
yarn --immutable-cache || :
# Ensure we don't download any node things
sed -i 's:--fallback-to-build:--build-from-source --nodedir=${nodejs}/include/node:g' node_modules/sqlite3/package.json
export CPPFLAGS="-I${nodejs}/include/node"
# Perform the actual install
yarn --immutable-cache
yarn run build
Expand Down

0 comments on commit edd8462

Please sign in to comment.