Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

thin-provisioning-tools: add symlinks for compatability #317032

Merged
merged 1 commit into from
Jun 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions pkgs/tools/misc/thin-provisioning-tools/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,30 @@ rustPlatform.buildRustPackage rec {
inherit (nixosTests.lvm2) lvm-thinpool-linux-latest;
};

# required for config compatibility with configs done pre 0.9.0
# see https://github.com/NixOS/nixpkgs/issues/317018
postInstall = ''
ln -s $out/bin/pdata_tools $out/bin/cache_check
ln -s $out/bin/pdata_tools $out/bin/cache_dump
ln -s $out/bin/pdata_tools $out/bin/cache_metadata_size
ln -s $out/bin/pdata_tools $out/bin/cache_repair
ln -s $out/bin/pdata_tools $out/bin/cache_restore
ln -s $out/bin/pdata_tools $out/bin/cache_writeback
ln -s $out/bin/pdata_tools $out/bin/era_check
ln -s $out/bin/pdata_tools $out/bin/era_dump
ln -s $out/bin/pdata_tools $out/bin/era_invalidate
ln -s $out/bin/pdata_tools $out/bin/era_restore
ln -s $out/bin/pdata_tools $out/bin/thin_check
ln -s $out/bin/pdata_tools $out/bin/thin_delta
ln -s $out/bin/pdata_tools $out/bin/thin_dump
ln -s $out/bin/pdata_tools $out/bin/thin_ls
ln -s $out/bin/pdata_tools $out/bin/thin_metadata_size
ln -s $out/bin/pdata_tools $out/bin/thin_repair
ln -s $out/bin/pdata_tools $out/bin/thin_restore
ln -s $out/bin/pdata_tools $out/bin/thin_rmap
ln -s $out/bin/pdata_tools $out/bin/thin_trim
'';

meta = with lib; {
homepage = "https://github.com/jthornber/thin-provisioning-tools/";
description = "A suite of tools for manipulating the metadata of the dm-thin device-mapper target";
Expand Down