tdarr: add missing packages to build and path (#505887)
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
libxfixes,
|
||||
tesseract4,
|
||||
perl,
|
||||
apprise,
|
||||
}:
|
||||
{
|
||||
pname,
|
||||
@@ -129,6 +130,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
libx11
|
||||
libxcursor
|
||||
libxfixes
|
||||
apprise
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
@@ -159,6 +161,12 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
# Remove musl-only prebuilt Node addons on glibc systems.
|
||||
# autoPatchelf scans all ELF files in $out and fails if musl libc is missing.
|
||||
${lib.optionalString (stdenv.hostPlatform.isLinux && !stdenv.hostPlatform.isMusl) ''
|
||||
find $out/share/${pname} -type f -name '*.musl.node' -delete
|
||||
''}
|
||||
|
||||
makeWrapper $out/share/${pname}/${componentName} $out/bin/${pname} ${commonWrapperArgs}
|
||||
makeWrapper $out/share/${pname}/${componentTrayName} $out/bin/${pname}-tray ${commonWrapperArgs}
|
||||
''
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ callPackage }:
|
||||
{ callPackage, ccextractor }:
|
||||
|
||||
callPackage ./common.nix { } {
|
||||
pname = "tdarr-node";
|
||||
@@ -10,4 +10,6 @@ callPackage ./common.nix { } {
|
||||
darwin_x64 = "sha256-icgzoHqZ+P6gXJ8jQTau3O2D6uRvET4MtNoWJI/JnvM=";
|
||||
darwin_arm64 = "sha256-Rw478IpDLLe+Ek3Jt5Duaq1sHL1D3pE0HkVqk+v1ECE=";
|
||||
};
|
||||
|
||||
includeInPath = [ ccextractor ];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user