2021-01-17 09:17:16 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, libiconv }:
|
2009-02-08 16:28:12 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "dosfstools";
|
2017-04-10 12:46:40 +01:00
|
|
|
version = "4.1";
|
2010-08-06 19:49:16 +01:00
|
|
|
|
2016-05-12 09:23:13 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dosfstools";
|
|
|
|
repo = "dosfstools";
|
|
|
|
rev = "v${version}";
|
2017-04-10 12:46:40 +01:00
|
|
|
sha256 = "1a2zn1655d5f1m6jp9vpn3bp8yfxhcmxx3mx23ai9hmxiydiykr1";
|
2010-08-06 19:49:16 +01:00
|
|
|
};
|
|
|
|
|
2021-01-17 09:17:16 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ]
|
2021-01-15 09:19:50 +00:00
|
|
|
++ lib.optional stdenv.isDarwin libiconv;
|
2010-08-06 19:49:16 +01:00
|
|
|
|
2017-04-11 02:45:33 +01:00
|
|
|
configureFlags = [ "--enable-compat-symlinks" ];
|
|
|
|
|
2016-05-12 09:23:13 +01:00
|
|
|
meta = {
|
2010-08-06 19:49:16 +01:00
|
|
|
description = "Utilities for creating and checking FAT and VFAT file systems";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/dosfstools/dosfstools";
|
2021-01-15 13:21:58 +00:00
|
|
|
platforms = lib.platforms.linux ++ lib.platforms.darwin;
|
2021-01-15 09:19:50 +00:00
|
|
|
license = lib.licenses.gpl3;
|
2010-08-06 19:49:16 +01:00
|
|
|
};
|
2009-02-08 16:28:12 +00:00
|
|
|
}
|