From 24d3f81575f47b34fdd163e16af27a73b933062d Mon Sep 17 00:00:00 2001 From: luftmensch-luftmensch Date: Sat, 18 May 2024 15:07:55 +0200 Subject: dwarfs: 0.7.5 → 0.9.8 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkgs/tools/filesystems/dwarfs/default.nix | 85 ++++++++++++++++--------------- 1 file changed, 45 insertions(+), 40 deletions(-) (limited to 'pkgs/tools/filesystems') diff --git a/pkgs/tools/filesystems/dwarfs/default.nix b/pkgs/tools/filesystems/dwarfs/default.nix index b2c52694d07c3..a0df52059b697 100644 --- a/pkgs/tools/filesystems/dwarfs/default.nix +++ b/pkgs/tools/filesystems/dwarfs/default.nix @@ -1,50 +1,54 @@ -{ lib -, fetchFromGitHub -, stdenv -, substituteAll - -, bison -, boost -, cmake -, double-conversion -, fmt -, fuse3 -, glog -, gtest -, jemalloc -, libarchive -, libevent -, libunwind -, lz4 -, openssl -, pkg-config -, ronn -, xxHash -, utf8cpp -, zstd +{ + lib, + fetchFromGitHub, + stdenv, + substituteAll, + bison, + boost, + cmake, + double-conversion, + fmt, + fuse3, + glog, + gtest, + jemalloc, + libarchive, + libevent, + libunwind, + lz4, + openssl, + pkg-config, + ronn, + xxHash, + utf8cpp, + zstd, }: - -stdenv.mkDerivation rec { +let pname = "dwarfs"; - version = "0.7.5"; - + version = "0.9.9"; +in +stdenv.mkDerivation { + inherit pname version; src = fetchFromGitHub { owner = "mhx"; repo = "dwarfs"; - rev = "v${version}"; + rev = "refs/tags/v${version}"; fetchSubmodules = true; hash = "sha256-Zzm2SaFR31TBBMDfgJulVbqsJBh1He2wBFzHRC/c5vg="; }; patches = [ - (with lib.versions; substituteAll { - src = ./version_info.patch; + ( + with lib.versions; + substituteAll { + src = ./version_info.patch; - versionFull = version; # displayed as version number (with v prepended) - versionMajor = major version; - versionMinor = minor version; - versionPatch = patch version; - }) + versionFull = version; # displayed as version number (with v prepended) + versionMajor = major version; + versionMinor = minor version; + versionPatch = patch version; + } + ) ]; cmakeFlags = [ @@ -91,11 +95,12 @@ stdenv.mkDerivation rec { # to the FUSE device GTEST_FILTER = "-dwarfs/tools_test.end_to_end/*:dwarfs/tools_test.mutating_ops/*"; - meta = with lib; { + meta = { description = "A fast high compression read-only file system"; homepage = "https://github.com/mhx/dwarfs"; - license = licenses.gpl3Plus; - maintainers = with maintainers; [ ]; - platforms = platforms.linux; + changelog = "https://github.com/mhx/dwarfs/blob/v${version}/CHANGES.md"; + license = lib.licenses.gpl3Plus; + maintainers = [ lib.maintainers.luftmensch-luftmensch ]; + platforms = lib.platforms.linux; }; } -- cgit 1.4.1