summary refs log blame commit diff
path: root/pkgs/build-support/fetchdarcs/default.nix
blob: 02777c9900dcc8d3dc84c31f0e287c1e3bd78eca (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                            

                                                         
 


                                                                    
                         

                         
                                     
 
                            
                               

                      
                          
 
{stdenvNoCC, darcs, cacert}:

{url, rev ? null, context ? null, md5 ? "", sha256 ? ""}:

if md5 != "" then
  throw "fetchdarcs does not support md5 anymore, please use sha256"
else
stdenvNoCC.mkDerivation {
  name = "fetchdarcs";
  builder = ./builder.sh;
  nativeBuildInputs = [cacert darcs];

  outputHashAlgo = "sha256";
  outputHashMode = "recursive";
  outputHash = sha256;

  inherit url rev context;
}