Java: Difference between revisions

imported>Volth
imported>Volth
Line 61: Line 61:
           inherit name;
           inherit name;
           outputHashMode = "flat";
           outputHashMode = "flat";
           outputHashAlgo = if sha256 == null then "sha256" else "sha1";
           outputHashAlgo = if sha256 != null then "sha256" else "sha1";
           outputHash    = if sha256 == null then  sha256  else  sha1 ;
           outputHash    = if sha256 != null then  sha256  else  sha1 ;
           buildCommand  = "cp ${files.${name}} $out";
           buildCommand  = "cp ${files.${name}} $out";
         }
         }