tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
ombi: 4.3.3 -> 4.10.2
Andrei Pampu
3 years ago
04a2e17e
e2aa7ace
+6
-6
2 changed files
expand all
collapse all
unified
split
pkgs
servers
ombi
default.nix
update.sh
+4
-4
pkgs/servers/ombi/default.nix
···
10
10
"Unsupported system: ${stdenv.hostPlatform.system}");
11
11
12
12
hash = {
13
13
-
x64-linux_hash = "sha256-BLtoT6UHsur+jFp4KBlE10/Z/V6RDy0k16H10IC98WQ=";
14
14
-
arm64-linux_hash = "sha256-s8EV/VqiUXWRTNxacx4sy6r+TIAqkqhESAYYa9s0uAQ=";
15
15
-
x64-osx_hash = "sha256-woXFYmX+499NTtWmmGBpZ12PxTUazJ8klA6IPQIDjLE=";
13
13
+
x64-linux_hash = "sha256-O/dfLZst7RFnqDZj8UX6ejL2EBjGnCBY3e8JB3peRgY=";
14
14
+
arm64-linux_hash = "sha256-DkCOK1A7L1gMqY/XPIJFFz7qvUvxA6aJa24Hrh3dT/U=";
15
15
+
x64-osx_hash = "sha256-4N0/FTVhxUooauhh+7u527aViSBILiCb+a4cI17QTAg=";
16
16
}."${arch}-${os}_hash";
17
17
18
18
in stdenv.mkDerivation rec {
19
19
pname = "ombi";
20
20
-
version = "4.3.3";
20
20
+
version = "4.10.2";
21
21
22
22
sourceRoot = ".";
23
23
+2
-2
pkgs/servers/ombi/update.sh
···
15
15
16
16
url="https://github.com/Ombi-app/Ombi/releases/download/v$version/$os-$arch.tar.gz"
17
17
hash=$(nix-prefetch-url --type sha256 $url)
18
18
-
sriHash="$(nix --extra-experimental-features nix-command hash to-sri --type sha256 $hash)"
18
18
+
sriHash="$(nix hash to-sri --type sha256 $hash)"
19
19
20
20
sed -i "s|$hashKey = \"[a-zA-Z0-9\/+-=]*\";|$hashKey = \"$sriHash\";|g" "$dirname/default.nix"
21
21
}
···
25
25
sed -i "s/version = \"[0-9.]*\";/version = \"$1\";/g" "$dirname/default.nix"
26
26
}
27
27
28
28
-
currentVersion=$(cd $dirname && nix eval --raw '(with import ../../.. {}; ombi.version)')
28
28
+
currentVersion=$(cd $dirname && nix eval --raw -f ../../.. ombi.version)
29
29
30
30
latestTag=$(curl https://api.github.com/repos/Ombi-App/Ombi/releases/latest | jq -r ".tag_name")
31
31
latestVersion="$(expr $latestTag : 'v\(.*\)')"