2019-05-22 13:03:39 +02:00
|
|
|
{ stdenv, lib, fetchurl, fpc, lazarus, atk, cairo, gdk-pixbuf, glib, gtk2, libX11, pango }:
|
2018-06-20 07:56:09 +02:00
|
|
|
|
2022-10-18 20:56:11 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2020-09-03 14:38:26 +02:00
|
|
|
pname = "ddrescueview";
|
2022-10-18 20:56:11 +02:00
|
|
|
version = "0.4.5";
|
2018-06-20 07:56:09 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2022-10-18 20:56:11 +02:00
|
|
|
url = "mirror://sourceforge/ddrescueview/ddrescueview-source-${version}.tar.xz";
|
|
|
|
sha256 = "sha256-Vzg8OU5iYSzip5lDiwDG48Rlwx+bqUDgd/Yk4ucChGU=";
|
2018-06-20 07:56:09 +02:00
|
|
|
};
|
2022-10-18 20:56:11 +02:00
|
|
|
sourceRoot = "ddrescueview-source-${version}/source";
|
2018-06-20 07:56:09 +02:00
|
|
|
|
|
|
|
nativeBuildInputs = [ fpc lazarus ];
|
|
|
|
|
2019-05-22 13:03:39 +02:00
|
|
|
buildInputs = [ atk cairo gdk-pixbuf glib gtk2 libX11 pango ];
|
2018-06-20 07:56:09 +02:00
|
|
|
|
|
|
|
NIX_LDFLAGS = "--as-needed -rpath ${lib.makeLibraryPath buildInputs}";
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
lazbuild --lazarusdir=${lazarus}/share/lazarus ddrescueview.lpi
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -Dt $out/bin ddrescueview
|
|
|
|
cd ../resources/linux
|
2020-09-03 14:38:26 +02:00
|
|
|
mkdir -p "$out/share"
|
|
|
|
cp -ar applications icons man $out/share
|
2018-06-20 07:56:09 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A tool to graphically examine ddrescue mapfiles";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://sourceforge.net/projects/ddrescueview/";
|
2018-06-20 07:56:09 +02:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ orivej ];
|
|
|
|
};
|
|
|
|
}
|