mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 02:13:23 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
30 lines
836 B
Nix
30 lines
836 B
Nix
{ lib, stdenv, fetchFromGitHub, fuse }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "littlefs-fuse";
|
|
version = "2.7.8";
|
|
src = fetchFromGitHub {
|
|
owner = "littlefs-project";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-dJt2Tcw+qdcOoZ9ejao9NXys/OYQTvbP9+dD6DCzFAw=";
|
|
};
|
|
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 = "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;
|
|
};
|
|
}
|