nixpkgs/pkgs/tools/filesystems/dosfstools/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
1001 B
Nix
Raw Normal View History

2022-03-17 22:22:35 +03:00
{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, libiconv, gettext, xxd }:
stdenv.mkDerivation rec {
pname = "dosfstools";
2022-03-17 22:22:35 +03:00
version = "4.2";
src = fetchFromGitHub {
owner = "dosfstools";
repo = "dosfstools";
rev = "v${version}";
2022-03-17 22:22:35 +03:00
sha256 = "sha256-2gxB0lQixiHOHw8uTetHekaM57fvUd9zOzSxWnvUz/c=";
};
nativeBuildInputs = [ autoreconfHook pkg-config ]
2021-01-15 12:19:50 +03:00
++ lib.optional stdenv.isDarwin libiconv;
2022-03-17 22:22:35 +03:00
# 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" ];
2022-03-17 22:22:35 +03:00
checkInputs = [ xxd ];
doCheck = true;
meta = {
description = "Utilities for creating and checking FAT and VFAT file systems";
homepage = "https://github.com/dosfstools/dosfstools";
2021-01-15 16:21:58 +03:00
platforms = lib.platforms.linux ++ lib.platforms.darwin;
2021-01-15 12:19:50 +03:00
license = lib.licenses.gpl3;
};
}