summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimo Kaufmann <timokau@zoho.com>2020-09-03 14:38:26 +0200
committerTimo Kaufmann <timokau@zoho.com>2020-09-03 14:39:11 +0200
commit31772af506a18a58cd837b798bf8b959d582cf91 (patch)
treee28db6aa2bcbed211d12f5acf515cda50664be14
parent96bc644e2e20c8170cfc3793979452257ead56d4 (diff)
ddrescueview: 0.4alpha3 -> 0.4alpha4
Update required for compatibility with fpc 3.2.0.
-rw-r--r--pkgs/tools/system/ddrescueview/default.nix23
1 files changed, 13 insertions, 10 deletions
diff --git a/pkgs/tools/system/ddrescueview/default.nix b/pkgs/tools/system/ddrescueview/default.nix
index 838873b7557f..6c8e9c56cdc9 100644
--- a/pkgs/tools/system/ddrescueview/default.nix
+++ b/pkgs/tools/system/ddrescueview/default.nix
@@ -1,20 +1,24 @@
{ stdenv, lib, fetchurl, fpc, lazarus, atk, cairo, gdk-pixbuf, glib, gtk2, libX11, pango }:
-stdenv.mkDerivation rec {
- name = "ddrescueview-0.4alpha3";
+let
+ versionBase = "0.4";
+ versionSuffix = "alpha4";
+in stdenv.mkDerivation rec {
+ pname = "ddrescueview";
+ version = "${versionBase}${versionSuffix}";
+ name = "ddrescueview-0.4alpha4";
src = fetchurl {
- name = "${name}.tar.xz";
- url = "mirror://sourceforge/ddrescueview/ddrescueview-source-0.4%7Ealpha3.tar.xz";
- sha256 = "0603jisxkswfyh93s3i20f8ns4yf83dmgmy0lg5001rvaw9mkw9j";
+ name = "ddrescueview-${versionBase}${versionSuffix}.tar.xz";
+ url = "mirror://sourceforge/ddrescueview/ddrescueview-source-${versionBase}~${versionSuffix}.tar.xz";
+ sha256 = "0v159nlc0lrqznbbwi7zda619is5h2rjk55gz6cl807j0kd19ycc";
};
+ sourceRoot = "ddrescueview-source-${versionBase}~${versionSuffix}/source";
nativeBuildInputs = [ fpc lazarus ];
buildInputs = [ atk cairo gdk-pixbuf glib gtk2 libX11 pango ];
- sourceRoot = "source";
-
NIX_LDFLAGS = "--as-needed -rpath ${lib.makeLibraryPath buildInputs}";
buildPhase = ''
@@ -24,9 +28,8 @@ stdenv.mkDerivation rec {
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
+ mkdir -p "$out/share"
+ cp -ar applications icons man $out/share
'';
meta = with lib; {