nixpkgs/pkgs/tools/system/ddrutility/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
929 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl }:
2018-06-20 07:57:08 +02:00
stdenv.mkDerivation rec {
pname = "ddrutility";
2018-06-20 07:57:08 +02:00
version = "2.8";
src = fetchurl {
url = "mirror://sourceforge/ddrutility/${pname}-${version}.tar.gz";
2018-06-20 07:57:08 +02:00
sha256 = "023g7f2sfv5cqk3iyss4awrw3b913sy5423mn5zvlyrri5hi2cac";
};
postPatch = ''
substituteInPlace makefile --replace /usr/local ""
'';
# Workaround build failure on -fno-common toolchains like upstream
# gcc-10. Otherwise build fails as:
# ld: /build/ccltHly5.o:(.bss+0x119f8): multiple definition of `start_time'; /build/cc9evx3L.o:(.bss+0x10978): first defined here
NIX_CFLAGS_COMPILE = "-fcommon";
2018-06-20 07:57:08 +02:00
makeFlags = [ "DESTDIR=$(out)" ];
meta = with lib; {
2018-06-20 07:57:08 +02:00
description = "A set of utilities for hard drive data rescue";
homepage = "https://sourceforge.net/projects/ddrutility/";
2018-06-20 07:57:08 +02:00
license = licenses.gpl2Plus;
platforms = platforms.linux;
maintainers = with maintainers; [ orivej ];
};
}