littlefs-fuse: init at 2.4.1

This commit is contained in:
Emery Hemingway 2022-03-09 08:27:52 -06:00 committed by ehmry
parent 4ec35ff6d6
commit de23459252
2 changed files with 28 additions and 0 deletions

View file

@ -0,0 +1,26 @@
{ lib, stdenv, fetchFromGitHub, fuse }:
stdenv.mkDerivation rec {
pname = "littlefs-fuse";
version = "2.4.1";
src = fetchFromGitHub {
owner = "littlefs-project";
repo = pname;
rev = "v${version}";
hash = "sha256-+EUZluBtgZiziTEIfXIhkRIBu/Pe78qmL18TQHkfHO4=";
};
buildInputs = [ fuse ];
installPhase = ''
runHook preInstall
install -D lfs $out/bin/${pname}
ln -s $out/bin/${pname} $out/bin/mount.littlefs
ln -s $out/bin $out/sbin
runHook postInstall
'';
meta = src.meta // {
description = "A FUSE wrapper that puts the littlefs in user-space";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ ehmry ];
inherit (fuse.meta) platforms;
};
}

View file

@ -7233,6 +7233,8 @@ with pkgs;
lfs = callPackage ../tools/filesystems/lfs { };
littlefs-fuse = callPackage ../tools/filesystems/littlefs-fuse { };
lksctp-tools = callPackage ../os-specific/linux/lksctp-tools { };
lldpd = callPackage ../tools/networking/lldpd { };