zfstools: add gem dependency which is no longer in ruby per default (#543062)

This commit is contained in:
Sandro
2026-07-24 00:35:24 +00:00
committed by GitHub
4 changed files with 41 additions and 7 deletions
+3
View File
@@ -0,0 +1,3 @@
source "http://rubygems.org"
gem "getoptlong"
+14
View File
@@ -0,0 +1,14 @@
GEM
remote: http://rubygems.org/
specs:
getoptlong (0.2.1)
PLATFORMS
ruby
x86_64-linux
DEPENDENCIES
getoptlong
BUNDLED WITH
2.6.9
+12
View File
@@ -0,0 +1,12 @@
{
getoptlong = {
groups = [ "default" ];
platforms = [ ];
source = {
remotes = [ "http://rubygems.org" ];
sha256 = "198vy9dxyzibqdbw9jg8p2ljj9iknkyiqlyl229vz55rjxrz08zx";
type = "gem";
};
version = "0.2.1";
};
}
+12 -7
View File
@@ -1,25 +1,31 @@
{
lib,
bundlerEnv,
stdenv,
fetchFromGitHub,
ruby,
zfs,
freebsd,
makeWrapper,
}:
let
rubyEnv = bundlerEnv {
name = "zfstools-gems";
gemdir = ./.;
};
in
stdenv.mkDerivation (finalAttrs: {
pname = "zfstools";
version = "0.3.6";
src = fetchFromGitHub {
sha256 = "16lvw3xbmxp2pr8nixqn7lf4504zaaxvbbdnjkv4dggwd4lsdjyg";
rev = "v${finalAttrs.version}";
repo = "zfstools";
owner = "bdrewery";
repo = "zfstools";
tag = "v${finalAttrs.version}";
hash = "sha256-z8umKWn8vUb2lLattbtSn4BCHD0W92hRvuL2uvrgm5o=";
};
buildInputs = [ ruby ];
buildInputs = [ rubyEnv.wrappedRuby ];
nativeBuildInputs = [ makeWrapper ];
installPhase = ''
@@ -36,9 +42,8 @@ stdenv.mkDerivation (finalAttrs: {
'';
meta = {
inherit (finalAttrs) version;
inherit (finalAttrs.src.meta) homepage;
description = "OpenSolaris-compatible auto-snapshotting script for ZFS";
homepage = "https://github.com/bdrewery/zfstools";
longDescription = ''
zfstools is an OpenSolaris-like and compatible auto snapshotting script
for ZFS, which also supports auto snapshotting mysql databases.