blob: 381279883d0c18b22a01d1af7334d2e725086507 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
{
stdenvNoCC,
lib,
curl,
fetchFromGitLab,
installShellFiles,
nix-update-script,
shunit2,
}:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "wcurl";
version = "2024.07.10";
src = fetchFromGitLab {
domain = "salsa.debian.org";
owner = "debian";
repo = "wcurl";
rev = "refs/tags/${finalAttrs.version}";
hash = "sha256-FYkG74uoXFNYT7tszDcdCPQCEG3ePOFBUgIUYpsAzb8=";
};
strictDeps = true;
nativeBuildInputs = [ installShellFiles ];
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
'';
passthru.updateScript = nix-update-script { };
meta = {
homepage = "https://salsa.debian.org/debian/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;
};
})
|