ssdfs-utils: init at 4.24

This commit is contained in:
ners 2023-05-22 15:05:02 +02:00 committed by Alyssa Ross
parent 7f528f2f6c
commit f4c243b120
3 changed files with 63 additions and 0 deletions

View file

@ -0,0 +1,47 @@
{ lib
, stdenv
, fetchFromGitHub
, autoreconfHook
, libtool
, libuuid
, zlib
}:
stdenv.mkDerivation {
# The files and commit messages in the repository refer to the package
# as ssdfs-utils, not ssdfs-tools.
pname = "ssdfs-utils";
# The version is taken from `configure.ac`, there are no tags.
version = "4.24";
src = fetchFromGitHub {
owner = "dubeyko";
repo = "ssdfs-tools";
rev = "0a3ca85b454e56cf2422f33663639ad13fc792dd";
hash = "sha256-pzpwbvo0BR4fG6Cnxb9GdH/UZlJ6C5am7TULSLEzdvI=";
};
strictDeps = true;
nativeBuildInputs = [
autoreconfHook
];
buildInputs = [
libtool
libuuid
zlib
];
passthru = {
updateScript = ./update.sh;
};
meta = with lib; {
description = "SSDFS file system utilities";
homepage = "https://github.com/dubeyko/ssdfs-tools";
license = licenses.bsd3Clear;
maintainers = with maintainers; [ ners ];
platforms = platforms.linux;
};
}

View file

@ -0,0 +1,14 @@
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p curl gnugrep common-updater-scripts
set -euo pipefail
owner=dubeyko
repo=ssdfs-tools
version="$(curl --silent https://raw.githubusercontent.com/${owner}/${repo}/master/configure.ac | \
grep 'AC_INIT(ssdfs' | \
egrep -o '[0-9\.]{3,}')"
rev=$(curl -s -H "Accept: application/vnd.github.VERSION.sha" https://api.github.com/repos/${owner}/${repo}/commits/master)
update-source-version ssdfs-utils "$version" --rev="$rev"

View file

@ -4122,6 +4122,8 @@ with pkgs;
btrfs-snap = callPackage ../tools/filesystems/btrfs-snap { };
ssdfs-utils = callPackage ../tools/filesystems/ssdfs-utils { };
btlejack = python3Packages.callPackage ../applications/radio/btlejack { };
btrbk = callPackage ../tools/backup/btrbk { };