forgejo-lts: 7.0.10 -> 7.0.11
[NixPkgs.git] / pkgs / by-name / re / recoverdm / package.nix
blobd5e4aeb7fc0d80669ecf3c01e0617c37adf1f678
1 { lib
2 , stdenv
3 , fetchFromGitLab
4 , installShellFiles
5 }:
7 stdenv.mkDerivation (finalAttrs: {
8   pname = "recoverdm";
9   version = "0.20-8";
11   src = fetchFromGitLab {
12     domain = "salsa.debian.org";
13     owner = "pkg-security-team";
14     repo = "recoverdm";
15     rev = "debian/${finalAttrs.version}";
16     hash = "sha256-1iW3Ug85ZLGpvG29N5zJt8oooSQGnLsr+8XIcp4aSSM=";
17   };
19   patches = let patch = name: "./debian/patches/${name}"; in [
20     (patch "10_fix-makefile.patch")
21     (patch "20_fix-typo-binary.patch")
22     (patch "30-fix-BTS-mergebad-crash.patch")
23     (patch "40_dev-c.patch")
24     ./0001-darwin-build-fixes.patch
25   ];
27   postPatch = ''
28     substituteInPlace Makefile \
29       --replace-fail '$(DESTDIR)/usr/bin' $out/bin
30   '';
32   nativeBuildInputs = [
33     installShellFiles
34   ];
36   preInstall = ''
37     mkdir -p $out/bin
38   '';
40   postInstall = ''
41     installManPage recoverdm.1
42   '';
44   meta = with lib; {
45     description = "Recover damaged CD DVD and disks with bad sectors";
46     mainProgram = "recoverdm";
47     homepage = "https://salsa.debian.org/pkg-security-team/recoverdm";
48     changelog = "https://salsa.debian.org/pkg-security-team/recoverdm/-/blob/debian/master/debian/changelog";
49     maintainers = with maintainers; [ d3vil0p3r ];
50     platforms = platforms.unix;
51     license = licenses.gpl1Only;
52   };