4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
30 lines
908 B
Nix
30 lines
908 B
Nix
{ lib, stdenv, fetchurl, fetchpatch, openssl, readline }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "cadaver-0.23.3";
|
|
|
|
src = fetchurl {
|
|
url = "http://www.webdav.org/cadaver/${name}.tar.gz";
|
|
sha256 = "1jizq69ifrjbjvz5y79wh1ny94gsdby4gdxwjad4bfih6a5fck7x";
|
|
};
|
|
|
|
patches = [
|
|
(fetchpatch {
|
|
url = "https://projects.archlinux.org/svntogit/community.git/plain/trunk/disable-sslv2.patch?h=packages/cadaver";
|
|
name = "disable-sslv2.patch";
|
|
sha256 = "1qx65hv584wdarks51yhd3y38g54affkphm5wz27xiz4nhmbssrr";
|
|
})
|
|
];
|
|
|
|
configureFlags = [ "--with-ssl" "--with-readline" ];
|
|
|
|
buildInputs = [ openssl readline ];
|
|
|
|
meta = with lib; {
|
|
description = "A command-line WebDAV client";
|
|
homepage = "http://www.webdav.org/cadaver";
|
|
maintainers = with maintainers; [ ianwookim ];
|
|
license = licenses.gpl2;
|
|
platforms = with platforms; linux ++ freebsd ++ openbsd;
|
|
};
|
|
}
|