about summary refs log tree commit diff
path: root/pkgs/tools/filesystems/dosfstools/default.nix
diff options
context:
space:
mode:
authorArtturi <Artturin@artturin.com>2022-03-17 21:22:35 +0200
committerGitHub <noreply@github.com>2022-03-17 21:22:35 +0200
commitdd207d6bda55605113fc20ebd0c8ab6fb0fa60c9 (patch)
tree5bbf55f1ef7024828c4934ded7195f2b67ecea1b /pkgs/tools/filesystems/dosfstools/default.nix
parent9c5038967d6ebae454f3329a026bb513e082df0f (diff)
dosfstools: 4.1 -> 4.2 (#163074)
Diffstat (limited to 'pkgs/tools/filesystems/dosfstools/default.nix')
-rw-r--r--pkgs/tools/filesystems/dosfstools/default.nix15
1 files changed, 12 insertions, 3 deletions
diff --git a/pkgs/tools/filesystems/dosfstools/default.nix b/pkgs/tools/filesystems/dosfstools/default.nix
index 14d054364fd9d..75a39fdfe92e2 100644
--- a/pkgs/tools/filesystems/dosfstools/default.nix
+++ b/pkgs/tools/filesystems/dosfstools/default.nix
@@ -1,21 +1,30 @@
-{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, libiconv }:
+{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, libiconv, gettext, xxd }:
 
 stdenv.mkDerivation rec {
   pname = "dosfstools";
-  version = "4.1";
+  version = "4.2";
 
   src = fetchFromGitHub {
     owner = "dosfstools";
     repo = "dosfstools";
     rev = "v${version}";
-    sha256 = "1a2zn1655d5f1m6jp9vpn3bp8yfxhcmxx3mx23ai9hmxiydiykr1";
+    sha256 = "sha256-2gxB0lQixiHOHw8uTetHekaM57fvUd9zOzSxWnvUz/c=";
   };
 
   nativeBuildInputs = [ autoreconfHook pkg-config ]
     ++ lib.optional stdenv.isDarwin libiconv;
 
+  # configure.ac:75: error: required file './config.rpath' not found
+  # https://github.com/dosfstools/dosfstools/blob/master/autogen.sh
+  postPatch = ''
+    cp ${gettext}/share/gettext/config.rpath config.rpath
+  '';
+
   configureFlags = [ "--enable-compat-symlinks" ];
 
+  checkInputs = [ xxd ];
+  doCheck = true;
+
   meta = {
     description = "Utilities for creating and checking FAT and VFAT file systems";
     homepage = "https://github.com/dosfstools/dosfstools";