2019-05-22 12:03:39 +01:00
|
|
|
{ stdenv, lib, fetchurl, fpc, lazarus, atk, cairo, gdk-pixbuf, glib, gtk2, libX11, pango }:
|
2018-06-20 06:56:09 +01:00
|
|
|
|
2020-09-03 13:38:26 +01:00
|
|
|
let
|
|
|
|
versionBase = "0.4";
|
|
|
|
versionSuffix = "alpha4";
|
|
|
|
in stdenv.mkDerivation rec {
|
|
|
|
pname = "ddrescueview";
|
|
|
|
version = "${versionBase}${versionSuffix}";
|
|
|
|
name = "ddrescueview-0.4alpha4";
|
2018-06-20 06:56:09 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2020-09-03 13:38:26 +01:00
|
|
|
name = "ddrescueview-${versionBase}${versionSuffix}.tar.xz";
|
|
|
|
url = "mirror://sourceforge/ddrescueview/ddrescueview-source-${versionBase}~${versionSuffix}.tar.xz";
|
|
|
|
sha256 = "0v159nlc0lrqznbbwi7zda619is5h2rjk55gz6cl807j0kd19ycc";
|
2018-06-20 06:56:09 +01:00
|
|
|
};
|
2020-09-03 13:38:26 +01:00
|
|
|
sourceRoot = "ddrescueview-source-${versionBase}~${versionSuffix}/source";
|
2018-06-20 06:56:09 +01:00
|
|
|
|
|
|
|
nativeBuildInputs = [ fpc lazarus ];
|
|
|
|
|
2019-05-22 12:03:39 +01:00
|
|
|
buildInputs = [ atk cairo gdk-pixbuf glib gtk2 libX11 pango ];
|
2018-06-20 06:56:09 +01: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 13:38:26 +01:00
|
|
|
mkdir -p "$out/share"
|
|
|
|
cp -ar applications icons man $out/share
|
2018-06-20 06:56:09 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A tool to graphically examine ddrescue mapfiles";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://sourceforge.net/projects/ddrescueview/";
|
2018-06-20 06:56:09 +01:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ orivej ];
|
|
|
|
};
|
|
|
|
}
|