2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv, lib, fetchurl, fpc, lazarus, atk, cairo, gdk-pixbuf, glib, gtk2, libX11, pango }:
|
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-09-25 04:45:31 +00:00
|
|
|
pname = "ddrescueview";
|
2022-10-21 18:38:19 +00:00
|
|
|
version = "0.4.5";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2022-10-21 18:38:19 +00:00
|
|
|
url = "mirror://sourceforge/ddrescueview/ddrescueview-source-${version}.tar.xz";
|
|
|
|
sha256 = "sha256-Vzg8OU5iYSzip5lDiwDG48Rlwx+bqUDgd/Yk4ucChGU=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2022-10-21 18:38:19 +00:00
|
|
|
sourceRoot = "ddrescueview-source-${version}/source";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ fpc lazarus ];
|
|
|
|
|
|
|
|
buildInputs = [ atk cairo gdk-pixbuf glib gtk2 libX11 pango ];
|
|
|
|
|
|
|
|
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-25 04:45:31 +00:00
|
|
|
mkdir -p "$out/share"
|
|
|
|
cp -ar applications icons man $out/share
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Tool to graphically examine ddrescue mapfiles";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://sourceforge.net/projects/ddrescueview/";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ orivej ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "ddrescueview";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|