freelens-bin: 1.7.0 -> 1.8.0 (#482120)
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
pname,
|
||||
version,
|
||||
src,
|
||||
passthru,
|
||||
meta,
|
||||
undmg,
|
||||
}:
|
||||
@@ -12,6 +13,7 @@ stdenvNoCC.mkDerivation {
|
||||
pname
|
||||
version
|
||||
src
|
||||
passthru
|
||||
meta
|
||||
;
|
||||
|
||||
@@ -23,7 +25,7 @@ stdenvNoCC.mkDerivation {
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p "$out/Applications"
|
||||
cp -R "Lens.app" "$out/Applications/Lens.app"
|
||||
cp -R "Freelens.app" "$out/Applications/Freelens.app"
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
pname,
|
||||
version,
|
||||
src,
|
||||
passthru,
|
||||
meta,
|
||||
appimageTools,
|
||||
makeWrapper,
|
||||
@@ -15,6 +16,7 @@ appimageTools.wrapType2 {
|
||||
pname
|
||||
version
|
||||
src
|
||||
passthru
|
||||
meta
|
||||
;
|
||||
|
||||
|
||||
@@ -6,29 +6,33 @@
|
||||
appimageTools,
|
||||
makeWrapper,
|
||||
undmg,
|
||||
writeShellScript,
|
||||
nix-update,
|
||||
jq,
|
||||
common-updater-scripts,
|
||||
}:
|
||||
|
||||
let
|
||||
|
||||
pname = "freelens-bin";
|
||||
version = "1.7.0";
|
||||
version = "1.8.0";
|
||||
|
||||
sources = {
|
||||
x86_64-linux = {
|
||||
url = "https://github.com/freelensapp/freelens/releases/download/v${version}/Freelens-${version}-linux-amd64.AppImage";
|
||||
hash = "sha256-VeWTfJf66Cq4ZyR/mO0kzm8wD+Auo1MZvXPYC1Bbf7U=";
|
||||
hash = "sha256-sgbsGUp/TKQZhPZgMpbIJy7n+BW0UGkp55jFHLO5T8s=";
|
||||
};
|
||||
aarch64-linux = {
|
||||
url = "https://github.com/freelensapp/freelens/releases/download/v${version}/Freelens-${version}-linux-arm64.AppImage";
|
||||
hash = "sha256-KzX9GEaAVRWUYjaj31PVc4OQvFScXsZqZMR+baPADZA=";
|
||||
hash = "sha256-8yAL+JxxjZ3XZOy+HCH5HfkZYr+84OoekTVcH3s6AsU=";
|
||||
};
|
||||
x86_64-darwin = {
|
||||
url = "https://github.com/freelensapp/freelens/releases/download/v${version}/Freelens-${version}-macos-amd64.dmg";
|
||||
hash = "sha256-qtfOf14gmH4HAA/UZ86QR1sA75lzXVaoWNb0N+mJWPw=";
|
||||
hash = "sha256-1htSmQ+p7LMziwroG4aVY7HV1ZoLZ1YBDw2EHI4bh+k=";
|
||||
};
|
||||
aarch64-darwin = {
|
||||
url = "https://github.com/freelensapp/freelens/releases/download/v${version}/Freelens-${version}-macos-arm64.dmg";
|
||||
hash = "sha256-U6Oj+ip/srVzfyE04rJSZgaAtIt7y0X8nLgHeIvB/So=";
|
||||
hash = "sha256-JFhzIhqdvcY3ssbKBoKyEcnX65C9OyVfTnGuuZJDAuw=";
|
||||
};
|
||||
};
|
||||
|
||||
@@ -36,6 +40,24 @@ let
|
||||
inherit (sources.${stdenv.system} or (throw "Unsupported system: ${stdenv.system}")) url hash;
|
||||
};
|
||||
|
||||
passthru = {
|
||||
updateScript = writeShellScript "update-freelens-bin" ''
|
||||
${lib.getExe nix-update} freelens-bin --override-filename pkgs/by-name/fr/freelens-bin/package.nix
|
||||
latestVersion=$(nix eval --log-format raw --raw --file default.nix freelens-bin.version)
|
||||
if [[ "$latestVersion" == "$UPDATE_NIX_OLD_VERSION" ]]; then
|
||||
exit 0
|
||||
fi
|
||||
systems=$(nix eval --json -f . freelens-bin.meta.platforms | ${lib.getExe jq} --raw-output '.[]')
|
||||
for system in $systems; do
|
||||
hash=$(nix store prefetch-file --json $(nix eval --raw -f . freelens-bin.src.url --system "$system") | ${lib.getExe jq} --raw-output .hash)
|
||||
${lib.getExe' common-updater-scripts "update-source-version"} freelens-bin $latestVersion $hash --system=$system --ignore-same-version --ignore-same-hash
|
||||
done
|
||||
'';
|
||||
}
|
||||
// lib.optionalAttrs stdenv.hostPlatform.isLinux {
|
||||
inherit src;
|
||||
};
|
||||
|
||||
meta = {
|
||||
description = "Free IDE for Kubernetes";
|
||||
longDescription = ''
|
||||
@@ -57,6 +79,7 @@ if stdenv.hostPlatform.isDarwin then
|
||||
pname
|
||||
version
|
||||
src
|
||||
passthru
|
||||
meta
|
||||
undmg
|
||||
;
|
||||
@@ -67,6 +90,7 @@ else
|
||||
pname
|
||||
version
|
||||
src
|
||||
passthru
|
||||
meta
|
||||
appimageTools
|
||||
makeWrapper
|
||||
|
||||
Reference in New Issue
Block a user