mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-23 05:14:45 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
29 lines
944 B
Nix
29 lines
944 B
Nix
{lib, stdenv, fetchurl, glib, neon, fuse, autoreconfHook, pkg-config}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "wdfs-fuse";
|
|
version = "1.4.2";
|
|
|
|
src = fetchurl {
|
|
url = "http://noedler.de/projekte/wdfs/wdfs-${version}.tar.gz";
|
|
sha256 = "fcf2e1584568b07c7f3683a983a9be26fae6534b8109e09167e5dff9114ba2e5";
|
|
};
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
|
buildInputs = [fuse glib neon];
|
|
|
|
postPatch = lib.optionalString stdenv.hostPlatform.isDarwin ''
|
|
# Fix the build on macOS with macFUSE installed. Needs autoreconfHook to
|
|
# take effect.
|
|
substituteInPlace configure.ac --replace \
|
|
'export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH' ""
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "http://noedler.de/projekte/wdfs/";
|
|
license = licenses.gpl2Plus;
|
|
description = "User-space filesystem that allows to mount a webdav share";
|
|
platforms = platforms.unix;
|
|
mainProgram = "wdfs";
|
|
};
|
|
}
|