Files
nixpkgs/pkgs/by-name/re/recoverdm/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

60 lines
1.4 KiB
Nix

{
lib,
stdenv,
fetchFromGitLab,
installShellFiles,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "recoverdm";
version = "0.20-9";
src = fetchFromGitLab {
domain = "salsa.debian.org";
owner = "pkg-security-team";
repo = "recoverdm";
rev = "debian/${finalAttrs.version}";
hash = "sha256-HLaiTeeqXn0mgRnG5FZflkPiDiB8CGzq4FR7lDj5oHI=";
};
patches =
let
patch = name: "./debian/patches/${name}";
in
[
(patch "10_fix-makefile.patch")
(patch "20_fix-typo-binary.patch")
(patch "30-fix-BTS-mergebad-crash.patch")
(patch "40_dev-c.patch")
(patch "50_ftbfs-with-gcc-14.patch")
./0001-darwin-build-fixes.patch
];
postPatch = ''
substituteInPlace Makefile \
--replace-fail '$(DESTDIR)/usr/bin' $out/bin
'';
nativeBuildInputs = [
installShellFiles
];
preInstall = ''
mkdir -p $out/bin
'';
postInstall = ''
installManPage recoverdm.1
'';
meta = with lib; {
description = "Recover damaged CD DVD and disks with bad sectors";
mainProgram = "recoverdm";
homepage = "https://salsa.debian.org/pkg-security-team/recoverdm";
changelog = "https://salsa.debian.org/pkg-security-team/recoverdm/-/blob/debian/master/debian/changelog";
maintainers = with maintainers; [ d3vil0p3r ];
platforms = platforms.unix;
license = licenses.gpl1Only;
};
})