summary refs log blame commit diff
path: root/pkgs/tools/networking/curlie/default.nix
blob: c251e1c149ee2afe86e988b05f340c45410c8c81 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                                                         


                   
                    
 
                         


                        
                                                                 

    
                                                                       
 

                                                       
                                                



                               
                    
                                                                                                                           
                                    


                                             
 
{ buildGoModule, fetchFromGitHub, lib, curlie, testers }:

buildGoModule rec {
  pname = "curlie";
  version = "1.6.9";

  src = fetchFromGitHub {
    owner = "rs";
    repo = pname;
    rev = "v${version}";
    hash = "sha256-3EKxuEpFm+lp2myMfymYYY9boSXGOF2iAdjtGKnjJK0=";
  };

  vendorSha256 = "sha256-tYZtnD7RUurhl8yccXlTIvOxybBJITM+it1ollYJ1OI=";

  ldflags = [ "-s" "-w" "-X main.version=${version}" ];

  passthru.tests.version = testers.testVersion {
    package = curlie;
    command = "curlie version";
  };

  meta = with lib; {
    description = "Frontend to curl that adds the ease of use of httpie, without compromising on features and performance";
    homepage = "https://curlie.io/";
    maintainers = with maintainers; [ ma27 ];
    license = licenses.mit;
  };
}