lol

dwarfs: init at 0.6.1

Co-authored-by: Thomas <twatson52@mac.com>

Stella 73570ddb 9aebffaa

+145
+103
pkgs/tools/filesystems/dwarfs/default.nix
··· 1 + { lib 2 + , fetchFromGitHub 3 + , stdenv 4 + , substituteAll 5 + 6 + , bison 7 + , boost 8 + , cmake 9 + , double-conversion 10 + , fmt_8 11 + , fuse3 12 + , gflags 13 + , glog 14 + , gtest 15 + , jemalloc 16 + , libarchive 17 + , libevent 18 + , libunwind 19 + , lz4 20 + , openssl 21 + , pkg-config 22 + , ronn 23 + , xxHash 24 + , zstd 25 + }: 26 + 27 + stdenv.mkDerivation rec { 28 + pname = "dwarfs"; 29 + version = "0.6.1"; 30 + 31 + src = fetchFromGitHub { 32 + owner = "mhx"; 33 + repo = "dwarfs"; 34 + rev = "v${version}"; 35 + fetchSubmodules = true; 36 + sha256 = "sha256-bGJkgcq8JxueRTX08QpJv1A0O5wXbiIgUY7BrY0Ln/M="; 37 + }; 38 + 39 + patches = with lib.versions; [ 40 + (substituteAll { 41 + src = ./version_info.patch; 42 + 43 + gitRev = "v${version}"; 44 + gitDesc = "v${version}"; 45 + gitBranch = "v${version}"; 46 + gitId = "v${version}"; # displayed as version number 47 + 48 + versionMajor = major version; 49 + versionMinor = minor version; 50 + versionPatch = patch version; 51 + }) 52 + ]; 53 + 54 + cmakeFlags = [ 55 + "-DPREFER_SYSTEM_ZSTD=ON" 56 + "-DPREFER_SYSTEM_XXHASH=ON" 57 + "-DPREFER_SYSTEM_GTEST=ON" 58 + 59 + # may be added under an option in the future 60 + # "-DWITH_LEGACY_FUSE=ON" 61 + "-DWITH_TESTS=ON" 62 + ]; 63 + 64 + nativeBuildInputs = [ 65 + bison 66 + cmake 67 + pkg-config 68 + ronn 69 + ]; 70 + 71 + buildInputs = [ 72 + # dwarfs 73 + boost 74 + fmt_8 75 + fuse3 76 + jemalloc 77 + libarchive 78 + lz4 79 + xxHash 80 + zstd 81 + 82 + # folly 83 + double-conversion 84 + glog 85 + libevent 86 + libunwind 87 + openssl 88 + ]; 89 + 90 + doCheck = true; 91 + checkInputs = [ gtest ]; 92 + # this fails inside of the sandbox due to missing access 93 + # to the FUSE device 94 + GTEST_FILTER = "-tools.everything"; 95 + 96 + meta = with lib; { 97 + description = "A fast high compression read-only file system"; 98 + homepage = "https://github.com/mhx/dwarfs"; 99 + license = licenses.gpl3Plus; 100 + maintainers = with maintainers; [ keksbg ]; 101 + platforms = platforms.linux; 102 + }; 103 + }
+40
pkgs/tools/filesystems/dwarfs/version_info.patch
··· 1 + diff --git a/include/dwarfs/version.h b/include/dwarfs/version.h 2 + new file mode 100755 3 + index 0000000..9b12c59 4 + --- /dev/null 5 + +++ b/include/dwarfs/version.h 6 + @@ -0,0 +1,16 @@ 7 + +// autogenerated code, do not modify 8 + + 9 + +#pragma once 10 + + 11 + +#define PRJ_VERSION_MAJOR @versionMajor@ 12 + +#define PRJ_VERSION_MINOR @versionMinor@ 13 + +#define PRJ_VERSION_PATCH @versionPatch@ 14 + + 15 + +namespace dwarfs { 16 + + 17 + +extern char const* PRJ_GIT_REV; 18 + +extern char const* PRJ_GIT_DESC; 19 + +extern char const* PRJ_GIT_BRANCH; 20 + +extern char const* PRJ_GIT_ID; 21 + + 22 + +} // namespace dwarfs 23 + diff --git a/src/dwarfs/version.cpp b/src/dwarfs/version.cpp 24 + new file mode 100755 25 + index 0000000..3af0215 26 + --- /dev/null 27 + +++ b/src/dwarfs/version.cpp 28 + @@ -0,0 +1,12 @@ 29 + +// autogenerated code, do not modify 30 + + 31 + +#include "dwarfs/version.h" 32 + + 33 + +namespace dwarfs { 34 + + 35 + +char const* PRJ_GIT_REV = "@gitRev@"; 36 + +char const* PRJ_GIT_DESC = "@gitDesc@"; 37 + +char const* PRJ_GIT_BRANCH = "@gitBranch@"; 38 + +char const* PRJ_GIT_ID = "@gitId@"; 39 + + 40 + +} // namespace dwarfs
+2
pkgs/top-level/all-packages.nix
··· 1187 1187 1188 1188 davinci-resolve = callPackage ../applications/video/davinci-resolve { }; 1189 1189 1190 + dwarfs = callPackage ../tools/filesystems/dwarfs { }; 1191 + 1190 1192 gamemode = callPackage ../tools/games/gamemode { 1191 1193 libgamemode32 = pkgsi686Linux.gamemode.lib; 1192 1194 };