tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
ums: 10.12.0 -> 13.2.1
emaryn
11 months ago
49cb60c0
be55d4a7
+26
-23
1 changed file
expand all
collapse all
unified
split
pkgs
by-name
um
ums
package.nix
+26
-23
pkgs/by-name/um/ums/package.nix
···
5
makeWrapper,
6
libzen,
7
libmediainfo,
8
-
jre8,
9
}:
10
11
stdenv.mkDerivation rec {
12
pname = "ums";
13
-
version = "10.12.0";
14
15
src =
16
-
{
17
-
i686-linux = fetchurl {
18
-
url =
19
-
"mirror://sourceforge/project/unimediaserver/${version}/"
20
-
+ lib.toUpper "${pname}-${version}"
21
-
+ "-x86.tgz";
22
-
sha256 = "0j3d5zcwwswlcr2vicmvnnr7n8cg3q46svz0mbmga4j3da4473i6";
23
};
24
-
x86_64-linux = fetchurl {
25
-
url =
26
-
"mirror://sourceforge/project/unimediaserver/${version}/"
27
-
+ lib.toUpper "${pname}-${version}"
28
-
+ "-x86_64.tgz";
29
-
sha256 = "06f96vkf593aasyfw458fa4x3rnai2k83vpgzc83hlwr0rw70qfn";
30
};
31
-
}
32
-
.${stdenv.hostPlatform.system} or (throw "Unsupported system: ${stdenv.hostPlatform.system}");
33
34
nativeBuildInputs = [ makeWrapper ];
35
36
installPhase = ''
37
-
cp -a . $out/
0
0
38
mkdir $out/bin
39
mv $out/documentation /$out/doc
40
41
# ums >= 9.0.0 ships its own JRE in the package. if we remove it, the `UMS.sh`
42
# script will correctly fall back to the JRE specified by JAVA_HOME
43
-
rm -rf $out/jre8
44
45
-
makeWrapper "$out/UMS.sh" "$out/bin/ums" \
46
-
--prefix LD_LIBRARY_PATH ":" "${
47
lib.makeLibraryPath [
48
libzen
49
libmediainfo
50
]
51
-
}" \
52
-
--set JAVA_HOME "${jre8}"
0
0
53
'';
54
55
meta = {
···
5
makeWrapper,
6
libzen,
7
libmediainfo,
8
+
jdk17,
9
}:
10
11
stdenv.mkDerivation rec {
12
pname = "ums";
13
+
version = "13.2.1";
14
15
src =
16
+
let
17
+
selectSystem =
18
+
attrs:
19
+
attrs.${stdenv.hostPlatform.system} or (throw "Unsupported system: ${stdenv.hostPlatform.system}");
20
+
arch = selectSystem {
21
+
x86_64-linux = "x86_64";
22
+
aarch64-linux = "arm64";
23
};
24
+
in
25
+
fetchurl {
26
+
url = "mirror://sourceforge/project/unimediaserver/${version}/UMS-${version}-${arch}.tgz";
27
+
hash = selectSystem {
28
+
x86_64-linux = "sha256-MGi5S0jA9WVh7PuNei5hInUVZLcypJu8izwWJpDi42s=";
29
+
aarch64-linux = "sha256-9x1M1rZxwg65RdMmxQ2geeF0yXrukQ3dQPXKfQ2GRIw=";
30
};
31
+
};
0
32
33
nativeBuildInputs = [ makeWrapper ];
34
35
installPhase = ''
36
+
runHook preInstall
37
+
38
+
cp -a . $out
39
mkdir $out/bin
40
mv $out/documentation /$out/doc
41
42
# ums >= 9.0.0 ships its own JRE in the package. if we remove it, the `UMS.sh`
43
# script will correctly fall back to the JRE specified by JAVA_HOME
44
+
rm -rf $out/jre17
45
46
+
makeWrapper $out/UMS.sh $out/bin/ums \
47
+
--prefix LD_LIBRARY_PATH : ${
48
lib.makeLibraryPath [
49
libzen
50
libmediainfo
51
]
52
+
} \
53
+
--set JAVA_HOME ${jdk17}
54
+
55
+
runHook postInstall
56
'';
57
58
meta = {