ghc_filesystem: modernize & use best practices
This commit is contained in:
parent
2f1894aebf
commit
112ad823b9
@ -1,19 +1,20 @@
|
|||||||
{
|
{
|
||||||
stdenv,
|
|
||||||
lib,
|
lib,
|
||||||
|
stdenv,
|
||||||
apple-sdk_11,
|
apple-sdk_11,
|
||||||
cmake,
|
cmake,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
|
nix-update-script,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "filesystem";
|
pname = "filesystem";
|
||||||
version = "1.5.14";
|
version = "1.5.14";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "gulrak";
|
owner = "gulrak";
|
||||||
repo = "filesystem";
|
repo = "filesystem";
|
||||||
rev = "v${version}";
|
rev = "refs/tags/v${finalAttrs.version}";
|
||||||
hash = "sha256-XZ0IxyNIAs2tegktOGQevkLPbWHam/AOFT+M6wAWPFg=";
|
hash = "sha256-XZ0IxyNIAs2tegktOGQevkLPbWHam/AOFT+M6wAWPFg=";
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -21,10 +22,15 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
buildInputs = lib.optional stdenv.hostPlatform.isDarwin apple-sdk_11;
|
buildInputs = lib.optional stdenv.hostPlatform.isDarwin apple-sdk_11;
|
||||||
|
|
||||||
meta = with lib; {
|
passthru = {
|
||||||
|
updateScript = nix-update-script { };
|
||||||
|
};
|
||||||
|
|
||||||
|
meta = {
|
||||||
description = "header-only single-file C++ std::filesystem compatible helper library";
|
description = "header-only single-file C++ std::filesystem compatible helper library";
|
||||||
homepage = "https://github.com/gulrak/filesystem";
|
homepage = "https://github.com/gulrak/filesystem";
|
||||||
license = licenses.mit;
|
changelog = "https://github.com/gulrak/filesystem/releases/tag/v${finalAttrs.version}";
|
||||||
maintainers = with maintainers; [ bbjubjub ];
|
license = lib.licenses.mit;
|
||||||
|
maintainers = with lib.maintainers; [ bbjubjub ];
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user