nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 48 lines 938 B view raw
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 fuse, 6 pkg-config, 7 attr, 8 uthash, 9}: 10 11stdenv.mkDerivation rec { 12 pname = "mhddfs"; 13 version = "0.1.39"; 14 15 src = fetchurl { 16 url = "https://mhddfs.uvw.ru/downloads/mhddfs_${version}.tar.gz"; 17 sha256 = "14ggmh91vv69fp2qpz0nxp0hprlw2wsijss2k2485hb0ci4cabvh"; 18 }; 19 20 nativeBuildInputs = [ pkg-config ]; 21 buildInputs = [ 22 fuse 23 attr 24 uthash 25 ]; 26 27 patches = [ 28 ./fix-format-security-error.patch 29 ]; 30 31 postPatch = '' 32 substituteInPlace src/main.c --replace "attr/xattr.h" "sys/xattr.h" 33 substituteInPlace src/tools.c --replace "attr/xattr.h" "sys/xattr.h" 34 ''; 35 36 installPhase = '' 37 mkdir -p $out/bin 38 cp mhddfs $out/bin/ 39 ''; 40 41 meta = { 42 homepage = "https://mhddfs.uvw.ru/"; 43 description = "Combines a several mount points into the single one"; 44 license = lib.licenses.gpl3; 45 maintainers = [ lib.maintainers.makefu ]; 46 mainProgram = "mhddfs"; 47 }; 48}