depot/third_party/nixpkgs/pkgs/tools/filesystems/fsfs/default.nix
Default email b6f2ab0a42 Project import generated by Copybara.
GitOrigin-RevId: 253aecf69ed7595aaefabde779aa6449195bebb7
2021-08-18 15:19:15 +02:00

32 lines
789 B
Nix

{lib, stdenv, fetchurl, openssl, fuse}:
throw "It still does not build"
stdenv.mkDerivation rec {
pname = "fsfs";
version = "0.1.1";
src = fetchurl {
url = "mirror://sourceforge/fsfs/fsfs-${version}.tar.gz";
sha256 = "05wka9aq182li2r7gxcd8bb3rhpns7ads0k59v7w1jza60l57c74";
};
buildInputs = [ fuse openssl ];
patchPhase = ''
sed -i -e 's,CONFDIR=\(.*\),CONFDIR='$out/etc, \
-e 's,USERCONFPREFIX=\(.*\),USERCONFPREFIX='$out/var/lib, Makefile \
src/Makefile src/utils/Makefile
'';
preInstall = ''
mkdir -p $out/etc $out/var/lib
makeFlags="$makeFlags prefix=$out"
'';
meta = {
homepage = "http://fsfs.sourceforge.net/";
description = "Secure distributed file system in user space";
license = lib.licenses.gpl2Plus;
};
}