wcurl: remove (#422398)
This commit is contained in:
@@ -1,81 +0,0 @@
|
||||
{
|
||||
stdenvNoCC,
|
||||
lib,
|
||||
coreutils,
|
||||
curl,
|
||||
fetchFromGitHub,
|
||||
gnused,
|
||||
installShellFiles,
|
||||
nix-update-script,
|
||||
makeBinaryWrapper,
|
||||
shunit2,
|
||||
}:
|
||||
|
||||
stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
pname = "wcurl";
|
||||
version = "2025.05.26";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "curl";
|
||||
repo = "wcurl";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-YeH+K+P+3iJ4v9et/B1PBi9nAr9L2xaYoMfSMP9ar9c=";
|
||||
};
|
||||
|
||||
strictDeps = true;
|
||||
|
||||
nativeBuildInputs = [
|
||||
installShellFiles
|
||||
makeBinaryWrapper
|
||||
];
|
||||
|
||||
nativeCheckInputs = [ shunit2 ];
|
||||
|
||||
doCheck = true;
|
||||
|
||||
dontBuild = true;
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace wcurl \
|
||||
--replace-fail '"curl "' '"${curl}/bin/curl "'
|
||||
'';
|
||||
|
||||
checkPhase = ''
|
||||
runHook preCheck
|
||||
|
||||
tests/tests.sh
|
||||
|
||||
runHook postCheck
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
install -D wcurl -t $out/bin
|
||||
installManPage wcurl.1
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
postFixup = ''
|
||||
wrapProgram $out/bin/wcurl \
|
||||
--inherit-argv0 \
|
||||
--prefix PATH : ${
|
||||
lib.makeBinPath [
|
||||
coreutils
|
||||
gnused
|
||||
]
|
||||
}
|
||||
'';
|
||||
|
||||
passthru.updateScript = nix-update-script { };
|
||||
|
||||
meta = {
|
||||
homepage = "https://curl.se/wcurl";
|
||||
description = "Simple wrapper around curl to easily download files";
|
||||
mainProgram = "wcurl";
|
||||
license = lib.licenses.curl;
|
||||
maintainers = with lib.maintainers; [ deejayem ];
|
||||
platforms = lib.platforms.all;
|
||||
};
|
||||
})
|
||||
@@ -2100,6 +2100,7 @@ mapAliases {
|
||||
'wayfireApplications-unwrapped.wlroots' has been removed
|
||||
''; # Add 2023-07-29
|
||||
waypoint = throw "waypoint has been removed from nixpkgs as the upstream project was archived"; # Added 2024-04-24
|
||||
wcurl = throw "'wcurl' has been removed due to being bundled with 'curl'"; # Added 2025-07-04
|
||||
webkitgtk = throw "'webkitgtk' attribute has been removed from nixpkgs, use attribute with ABI version set explicitly"; # Added 2025-06-11
|
||||
webmetro = throw "'webmetro' has been removed due to lack of upstream maintenance"; # Added 2025-01-25
|
||||
wg-bond = throw "'wg-bond' has been removed due to lack of upstream maintenance"; # Added 2025-01-25
|
||||
|
||||
Reference in New Issue
Block a user