e7ec2969af
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
29 lines
838 B
Nix
29 lines
838 B
Nix
{ lib, stdenv, fetchFromGitHub, fuse }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "littlefs-fuse";
|
|
version = "2.7.4";
|
|
src = fetchFromGitHub {
|
|
owner = "littlefs-project";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-S4yLe6xugr/cQOmf4vS09ebCqFuDPCXySJKACr0AUDU=";
|
|
};
|
|
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 ];
|
|
mainProgram = "littlefs-fuse";
|
|
inherit (fuse.meta) platforms;
|
|
# fatal error: 'linux/fs.h' file not found
|
|
broken = stdenv.isDarwin;
|
|
};
|
|
}
|