about summary refs log tree commit diff
path: root/pkgs/tools/filesystems
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2024-05-20 22:12:55 +0200
committerGitHub <noreply@github.com>2024-05-20 22:12:55 +0200
commitb4450eea3b227e91c5a99bf0d19625bc2aba7120 (patch)
treeb0f44be5c9c379f013191fa70d06569aa5781c59 /pkgs/tools/filesystems
parent1178d8a17f4da045d2f47beaac76a28d4c95e0b6 (diff)
parent24d3f81575f47b34fdd163e16af27a73b933062d (diff)
Merge pull request #312656 from luftmensch-luftmensch/dwarfs_0.9.9
dwarfs: 0.7.5 → 0.9.9
Diffstat (limited to 'pkgs/tools/filesystems')
-rw-r--r--pkgs/tools/filesystems/dwarfs/default.nix85
1 files changed, 45 insertions, 40 deletions
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;
   };
 }