osmium: fix update script
This commit is contained in:
@@ -25,9 +25,6 @@
|
||||
libnotify,
|
||||
libpulseaudio,
|
||||
writeShellApplication,
|
||||
curl,
|
||||
yq,
|
||||
common-updater-scripts,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
@@ -108,18 +105,7 @@ stdenv.mkDerivation rec {
|
||||
};
|
||||
|
||||
passthru = {
|
||||
updateScript = lib.getExe (writeShellApplication {
|
||||
name = "update-osmium";
|
||||
runtimeInputs = [
|
||||
curl
|
||||
yq
|
||||
common-updater-scripts
|
||||
];
|
||||
text = ''
|
||||
version="$(curl -s https://updater.osmium.chat/alpha-linux.yml | yq .version)"
|
||||
update-source-version osmium "$version"
|
||||
'';
|
||||
});
|
||||
updateScript = ./update.sh;
|
||||
};
|
||||
|
||||
meta = {
|
||||
|
||||
Executable
+5
@@ -0,0 +1,5 @@
|
||||
#!/usr/bin/env nix-shell
|
||||
#!nix-shell -i bash -p curl yq common-updater-scripts
|
||||
|
||||
version="$(curl -s https://updater.osmium.chat/alpha-linux.yml | yq -r .version)"
|
||||
update-source-version osmium "$version"
|
||||
Reference in New Issue
Block a user