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

                    
 



                           
                                                                 

    


                                                                     
 


                                                
 
                    
                                                         

                                                         
                                        

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

buildGoModule rec {
  pname = "dashing";
  version = "0.4.0";

  src = fetchFromGitHub {
    owner = "technosophos";
    repo = pname;
    rev = version;
    hash = "sha256-CcEgGPnJGrTXrgo82u5dxQTB/YjFBhHdsv7uggsHG1Y=";
  };

  vendorHash = "sha256-XeUFmzf6y0S82gMOzkj4AUNFkVvkVOwauYpqY4jeWLM=";

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

  passthru.tests.version = testers.testVersion {
    package = dashing;
  };

  meta = with lib; {
    description = "A Dash Generator Script for Any HTML";
    homepage = "https://github.com/technosophos/dashing";
    license = licenses.mit;
    maintainers = with maintainers; [ ];
  };
}