mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 09:23:01 +00:00
8646e61e1e
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
38 lines
1.1 KiB
Nix
38 lines
1.1 KiB
Nix
{ stdenv, lib, fetchurl, fpc, lazarus, atk, cairo, gdk-pixbuf, glib, gtk2, libX11, pango }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "ddrescueview";
|
|
version = "0.4.5";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/ddrescueview/ddrescueview-source-${version}.tar.xz";
|
|
sha256 = "sha256-Vzg8OU5iYSzip5lDiwDG48Rlwx+bqUDgd/Yk4ucChGU=";
|
|
};
|
|
sourceRoot = "ddrescueview-source-${version}/source";
|
|
|
|
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
|
|
mkdir -p "$out/share"
|
|
cp -ar applications icons man $out/share
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "A tool to graphically examine ddrescue mapfiles";
|
|
homepage = "https://sourceforge.net/projects/ddrescueview/";
|
|
license = licenses.gpl3Plus;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ orivej ];
|
|
};
|
|
}
|