1{
2 lib,
3 buildGoModule,
4 fetchFromGitHub,
5 curlie,
6 testers,
7}:
8
9buildGoModule (finalAttrs: {
10 pname = "curlie";
11 version = "1.8.2";
12
13 src = fetchFromGitHub {
14 owner = "rs";
15 repo = "curlie";
16 tag = "v${finalAttrs.version}";
17 hash = "sha256-BlpIDik4hkU4c+KCyAmgUURIN362RDQID/qo6Ojp2Ek=";
18 };
19
20 vendorHash = "sha256-GBccl8V87u26dtrGpHR+rKqRBqX6lq1SBwfsPvj/+44=";
21
22 ldflags = [
23 "-s"
24 "-w"
25 "-X main.version=${finalAttrs.version}"
26 ];
27
28 passthru.tests.version = testers.testVersion {
29 package = curlie;
30 command = "curlie version";
31 };
32
33 meta = {
34 description = "Frontend to curl that adds the ease of use of httpie, without compromising on features and performance";
35 homepage = "https://curlie.io/";
36 maintainers = with lib.maintainers; [ ma27 ];
37 license = lib.licenses.mit;
38 mainProgram = "curlie";
39 };
40})