lol

immich: fix cross build for FreeBSD (#387732)

authored by

Audrey Dutcher and committed by
GitHub
142acf25 64469c08

+9 -1
+9 -1
pkgs/by-name/im/immich/package.nix
··· 1 1 { 2 2 lib, 3 + stdenv, 3 4 buildNpmPackage, 4 5 fetchFromGitHub, 5 6 fetchpatch2, ··· 166 167 # see https://github.com/immich-app/immich/issues/13971 167 168 substituteInPlace src/services/backup.service.ts \ 168 169 --replace-fail '`/usr/lib/postgresql/''${databaseMajorVersion}/bin/pg_dumpall`' '`pg_dump`' 170 + 171 + # some part of the build wants to use un-prefixed binaries. let them. 172 + mkdir -p $TMP/bin 173 + ln -s "$(type -p ${stdenv.cc.targetPrefix}pkg-config)" $TMP/bin/pkg-config 174 + ln -s "$(type -p ${stdenv.cc.targetPrefix}c++filt)" $TMP/bin/c++filt 175 + ln -s "$(type -p ${stdenv.cc.targetPrefix}readelf)" $TMP/bin/readelf 176 + export PATH="$TMP/bin:$PATH" 169 177 ''; 170 178 171 179 nativeBuildInputs = [ ··· 254 262 Scrumplex 255 263 titaniumtown 256 264 ]; 257 - platforms = lib.platforms.linux; 265 + platforms = lib.platforms.linux ++ lib.platforms.freebsd; 258 266 mainProgram = "server"; 259 267 }; 260 268 }