Running nixpkgs-update (https://nix-community.org/update-bot/) with UPDATE_INFO: bcachefs-tools 0 -> 1 attrpath: bcachefs-tools Checking auto update branch... [version] [version] generic version rewriter does not support multiple hashes [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/4v2rgrnd21zx225nv7415zld8ac9m79g-packages.json.drv building '/nix/store/4v2rgrnd21zx225nv7415zld8ac9m79g-packages.json.drv'... Going to be running update for following packages: - bcachefs-tools-1.38.3 Press Enter key to continue... Running update for: Enqueuing group of 1 packages - bcachefs-tools-1.38.3: UPDATING ... - bcachefs-tools-1.38.3: DONE. Packages updated! Diff after rewrites: diff --git a/pkgs/by-name/bc/bcachefs-tools/package.nix b/pkgs/by-name/bc/bcachefs-tools/package.nix index faa4c82fbc70..0687bcbf00c9 100644 --- a/pkgs/by-name/bc/bcachefs-tools/package.nix +++ b/pkgs/by-name/bc/bcachefs-tools/package.nix @@ -30,18 +30,18 @@ stdenv.mkDerivation (finalAttrs: { pname = "bcachefs-tools"; - version = "1.38.3"; + version = "1.38.5"; src = fetchFromGitHub { owner = "koverstreet"; repo = "bcachefs-tools"; tag = "v${finalAttrs.version}"; - hash = "sha256-DR/aGCfqXUOubVEVmeJYOiF71rMYRYq8k23EXqluh5k="; + hash = "sha256-EXd+BOTAFUddK/4Vwi7GqRqndi2x4bb5gs7IIkMX6HU="; }; cargoDeps = rustPlatform.fetchCargoVendor { inherit (finalAttrs) src; - hash = "sha256-aiLSgpK3wadrBvclrQrdCzCiSjLcxg58oeP6ijL+JbY="; + hash = "sha256-6uwvwOVPYtegXTPwz2SEeQPC6OrKoFWZrH4Nx+ZVa5A="; }; postPatch = '' No auto update branch exists Old version 1.38.3" not present in master derivation file with contents: { lib, stdenv, fetchFromGitHub, pkg-config, libuuid, libsodium, libunwind, keyutils, kmod, liburcu, zlib, libaio, zstd, lz4, attr, udev, fuse3, cargo, rustc, rustPlatform, makeWrapper, nix-update-script, versionCheckHook, nixosTests, installShellFiles, fuseSupport ? false, udevCheckHook, }: stdenv.mkDerivation (finalAttrs: { pname = "bcachefs-tools"; version = "1.38.5"; src = fetchFromGitHub { owner = "koverstreet"; repo = "bcachefs-tools"; tag = "v${finalAttrs.version}"; hash = "sha256-EXd+BOTAFUddK/4Vwi7GqRqndi2x4bb5gs7IIkMX6HU="; }; cargoDeps = rustPlatform.fetchCargoVendor { inherit (finalAttrs) src; hash = "sha256-6uwvwOVPYtegXTPwz2SEeQPC6OrKoFWZrH4Nx+ZVa5A="; }; postPatch = '' substituteInPlace Makefile \ --replace-fail "target/release/bcachefs" "target/${stdenv.hostPlatform.rust.rustcTargetSpec}/release/bcachefs" substituteInPlace src/commands/mount.rs \ --replace-fail 'std::process::Command::new("modprobe")' 'std::process::Command::new("${lib.getExe' kmod "modprobe"}")' ''; nativeBuildInputs = [ pkg-config cargo rustc rustPlatform.cargoSetupHook rustPlatform.bindgenHook makeWrapper installShellFiles ]; buildInputs = [ libaio keyutils lz4 libsodium libunwind liburcu libuuid zstd zlib attr udev ] ++ lib.optional fuseSupport fuse3; makeFlags = [ "PREFIX=${placeholder "out"}" "VERSION=${finalAttrs.version}" "INITRAMFS_DIR=${placeholder "out"}/etc/initramfs-tools" "DKMSDIR=${placeholder "dkms"}" # Tries to install to the 'systemd-minimal' and 'udev' nix installation paths "PKGCONFIG_SERVICEDIR=$(out)/lib/systemd/system" "PKGCONFIG_UDEVDIR=$(out)/lib/udev" ] ++ lib.optional fuseSupport "BCACHEFS_FUSE=1"; enableParallelBuilding = true; installFlags = [ "install" "install_dkms" ]; env = { CARGO_BUILD_TARGET = stdenv.hostPlatform.rust.rustcTargetSpec; "CARGO_TARGET_${stdenv.hostPlatform.rust.cargoEnvVarTarget}_LINKER" = "${stdenv.cc.targetPrefix}cc"; }; # FIXME: Try enabling this once the default linux kernel is at least 6.7 doCheck = false; # needs bcachefs module loaded on builder preCheck = lib.optionalString (!fuseSupport) '' rm tests/test_fuse.py ''; checkFlags = [ "BCACHEFS_TEST_USE_VALGRIND=no" ]; doInstallCheck = true; nativeInstallCheckInputs = [ udevCheckHook versionCheckHook ]; versionCheckProgramArg = "version"; postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' installShellCompletion --cmd bcachefs \ --bash <($out/sbin/bcachefs completions bash) \ --zsh <($out/sbin/bcachefs completions zsh) \ --fish <($out/sbin/bcachefs completions fish) ''; outputs = [ "out" "dkms" ]; passthru = { # See NOTE in linux-kernels.nix kernelModule = import ./kernel-module.nix finalAttrs.finalPackage; tests = { smoke-test = nixosTests.bcachefs; inherit (nixosTests.installer) bcachefsSimple bcachefsEncrypted bcachefsMulti; }; updateScript = nix-update-script { }; }; meta = { description = "Tool for managing bcachefs filesystems"; homepage = "https://bcachefs.org/"; downloadPage = "https://github.com/koverstreet/bcachefs-tools"; license = lib.licenses.gpl2Only; maintainers = with lib.maintainers; [ davidak johnrtitor ]; platforms = lib.platforms.linux; mainProgram = "bcachefs"; broken = stdenv.hostPlatform.isi686; # error: stack smashing detected }; })