diff options
author | Orivej Desh <orivej@gmx.fr> | 2018-06-20 05:56:09 +0000 |
---|---|---|
committer | Orivej Desh <orivej@gmx.fr> | 2018-06-20 06:13:25 +0000 |
commit | 1c1e32ba002aba575e970306497380bf10e67da3 (patch) | |
tree | e6ff4e6d7d437447478e20236b64d2c2bf9e790b /pkgs/tools/system | |
parent | 142a2289ff72af59220d6a47a85c6fae81848984 (diff) | |
download | nixlib-1c1e32ba002aba575e970306497380bf10e67da3.tar nixlib-1c1e32ba002aba575e970306497380bf10e67da3.tar.gz nixlib-1c1e32ba002aba575e970306497380bf10e67da3.tar.bz2 nixlib-1c1e32ba002aba575e970306497380bf10e67da3.tar.lz nixlib-1c1e32ba002aba575e970306497380bf10e67da3.tar.xz nixlib-1c1e32ba002aba575e970306497380bf10e67da3.tar.zst nixlib-1c1e32ba002aba575e970306497380bf10e67da3.zip |
ddrescueview: init at 0.4alpha3
Diffstat (limited to 'pkgs/tools/system')
-rw-r--r-- | pkgs/tools/system/ddrescueview/default.nix | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/tools/system/ddrescueview/default.nix b/pkgs/tools/system/ddrescueview/default.nix new file mode 100644 index 000000000000..517cefb6a2b3 --- /dev/null +++ b/pkgs/tools/system/ddrescueview/default.nix @@ -0,0 +1,39 @@ +{ stdenv, lib, fetchurl, fpc, lazarus, atk, cairo, gdk_pixbuf, glib, gtk2, libX11, pango }: + +stdenv.mkDerivation rec { + name = "ddrescueview-0.4alpha3"; + + src = fetchurl { + name = "${name}.tar.xz"; + url = "mirror://sourceforge/ddrescueview/ddrescueview-source-0.4%7Ealpha3.tar.xz"; + sha256 = "0603jisxkswfyh93s3i20f8ns4yf83dmgmy0lg5001rvaw9mkw9j"; + }; + + nativeBuildInputs = [ fpc lazarus ]; + + buildInputs = [ atk cairo gdk_pixbuf glib gtk2 libX11 pango ]; + + sourceRoot = "source"; + + 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 + install -Dt $out/share/applications ddrescueview.desktop + install -Dt $out/share/icons/hicolor/32x32/apps ddrescueview.xpm + install -Dt $out/share/man/man1 ddrescueview.1 + ''; + + 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 ]; + }; +} |