Skip to content

Commit

Permalink
jellyfin-web: add assert to only build if version same as jellyfin
Browse files Browse the repository at this point in the history
  • Loading branch information
Nanotwerp committed May 26, 2024
1 parent 7a785a5 commit 9b540f2
Showing 1 changed file with 20 additions and 17 deletions.
37 changes: 20 additions & 17 deletions pkgs/servers/jellyfin/web.nix
Original file line number Diff line number Diff line change
@@ -1,25 +1,27 @@
{
lib,
stdenv,
overrideSDK,
fetchFromGitHub,
buildNpmPackage,
nix-update-script,
pkg-config,
xcbuild,
pango,
giflib,
darwin,
{ lib
, stdenv
, overrideSDK
, fetchFromGitHub
, buildNpmPackage
, jellyfin
, nix-update-script
, pkg-config
, xcbuild
, pango
, giflib
, darwin
,
}:
let
# node-canvas builds code that requires aligned_alloc,
# which on Darwin requires at least the 10.15 SDK
stdenv' =
if stdenv.isDarwin then
overrideSDK stdenv {
darwinMinVersion = "10.15";
darwinSdkVersion = "11.0";
}
overrideSDK stdenv
{
darwinMinVersion = "10.15";
darwinSdkVersion = "11.0";
}
else
stdenv;
buildNpmPackage' = buildNpmPackage.override { stdenv = stdenv'; };
Expand All @@ -28,7 +30,8 @@ buildNpmPackage' rec {
pname = "jellyfin-web";
version = "10.9.2";

src = fetchFromGitHub {
# nixpkgs-update: no auto update
src = assert version == jellyfin.version; fetchFromGitHub {
owner = "jellyfin";
repo = "jellyfin-web";
rev = "v${version}";
Expand Down

0 comments on commit 9b540f2

Please sign in to comment.