mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 02:03:01 +00:00
27 lines
726 B
Nix
27 lines
726 B
Nix
|
{ 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;
|
||
|
};
|
||
|
}
|