Running nixpkgs-update (https://nix-community.org/update-bot/) with UPDATE_INFO: _1password-cli 0 -> 1 attrpath: _1password-cli Checking auto update branch... [version] [version] skipping because derivation has updateScript [rustCrateVersion] [rustCrateVersion] No cargoHash found [golangModuleVersion] [golangModuleVersion] Not a buildGoModule package with vendorHash [npmDepsVersion] [npmDepsVersion] No npmDepsHash [updateScript] [updateScript] Success [updateScript] this derivation will be built: /nix/store/01vhfhv0s21ryl5hyvc92ybsbawnranq-packages.json.drv building '/nix/store/01vhfhv0s21ryl5hyvc92ybsbawnranq-packages.json.drv'... Going to be running update for following packages: - 1password-cli-2.34.1 Press Enter key to continue... Running update for: Enqueuing group of 1 packages - 1password-cli-2.34.1: UPDATING ... - 1password-cli-2.34.1: DONE. Packages updated! Diff after rewrites: diff --git a/pkgs/by-name/_1/_1password-cli/package.nix b/pkgs/by-name/_1/_1password-cli/package.nix index 6595b170e8e3..e2f76af6d36e 100644 --- a/pkgs/by-name/_1/_1password-cli/package.nix +++ b/pkgs/by-name/_1/_1password-cli/package.nix @@ -24,13 +24,13 @@ let if extension == "zip" then fetchzip args else fetchurl args; pname = "1password-cli"; - version = "2.34.1"; + version = "2.39.0-beta.02"; sources = { - aarch64-linux = fetch "linux_arm64" "sha256-uEukRq71eeayvNguD9XepvP1Br5AkE2Ag/Chv2idf4A=" "zip"; - i686-linux = fetch "linux_386" "sha256-p/F3YZLJnlimrVE2qxTHvIB4m47kuwhoCWTC40VIvMs=" "zip"; - x86_64-linux = fetch "linux_amd64" "sha256-oAABMlwwv5X91TT6FK2aPpg+e2CvmHT1rqIVRTjQNCQ=" "zip"; + aarch64-linux = fetch "linux_arm64" "sha256-wrDDNUI0W/S85wv8TfrJXI2FeKJDFaHFDH/y9DRbMGk=" "zip"; + i686-linux = fetch "linux_386" "sha256-kMe0jj6XhRC59Vqi6wtw8THBLdVDhjFOFXUqI2t9ZOg=" "zip"; + x86_64-linux = fetch "linux_amd64" "sha256-ZbqkqY2InfeBU3jxh27F9WPMy6EyrERUbO1PM9i0ycA=" "zip"; aarch64-darwin = - fetch "apple_universal" "sha256-vp1Y1M6DUanx1CAVhLrqgBovwws6Y/5jOgnwTZE8Hhc=" + fetch "apple_universal" "sha256-af3G2rc4JsqN7fn9uitN4S5z1x/DVLadHbszCUQswz0=" "pkg"; }; platforms = builtins.attrNames sources; No auto update branch exists Old version 2.34.1" not present in master derivation file with contents: { lib, stdenv, fetchurl, fetchzip, autoPatchelfHook, installShellFiles, cpio, xar, versionCheckHook, }: let inherit (stdenv.hostPlatform) system; fetch = srcPlatform: hash: extension: let args = { url = "https://cache.agilebits.com/dist/1P/op2/pkg/v${version}/op_${srcPlatform}_v${version}.${extension}"; inherit hash; } // lib.optionalAttrs (extension == "zip") { stripRoot = false; }; in if extension == "zip" then fetchzip args else fetchurl args; pname = "1password-cli"; version = "2.38.1"; sources = { aarch64-linux = fetch "linux_arm64" "sha256-RmpJkrrLrKwbmbw50+sTg0aFa0+M2EFPZ6+QSc3aV5M=" "zip"; i686-linux = fetch "linux_386" "sha256-hnpVsbNgofmfw/XobVZ2MnbGIcAjxH1MvVJNc5T1kuk=" "zip"; x86_64-linux = fetch "linux_amd64" "sha256-k268YiTC/2MJZhVqMI/e9bsrf4Sr4Wj8M/h/hbmmcqY=" "zip"; aarch64-darwin = fetch "apple_universal" "sha256-pLlEsqCL5j9QCuLkQxK/Mmz647lKbCYhOUiPch2MMuE=" "pkg"; }; platforms = builtins.attrNames sources; mainProgram = "op"; in stdenv.mkDerivation { inherit pname version; src = if (builtins.elem system platforms) then sources.${system} else throw "Source for 1password-cli is not available for ${system}"; nativeBuildInputs = [ installShellFiles versionCheckHook ] ++ lib.optional stdenv.hostPlatform.isLinux autoPatchelfHook ++ lib.optionals stdenv.hostPlatform.isDarwin [ xar cpio ]; unpackPhase = lib.optionalString stdenv.hostPlatform.isDarwin '' xar -xf $src zcat op.pkg/Payload | cpio -i ''; installPhase = '' runHook preInstall install -D op $out/bin/op runHook postInstall ''; postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' HOME=$TMPDIR installShellCompletion --cmd op \ --bash <($out/bin/op completion bash) \ --fish <($out/bin/op completion fish) \ --zsh <($out/bin/op completion zsh) ''; dontStrip = stdenv.hostPlatform.isDarwin; doInstallCheck = true; versionCheckProgram = "${placeholder "out"}/bin/op"; passthru = { updateScript = ./update.sh; }; meta = { description = "1Password command-line tool"; homepage = "https://developer.1password.com/docs/cli/"; downloadPage = "https://app-updates.agilebits.com/product_history/CLI2"; maintainers = with lib.maintainers; [ joelburget khaneliman savtrip ]; sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ]; license = lib.licenses.unfree; inherit mainProgram platforms; }; }