cripslock

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

optparse.nix (685B)


      1 { buildLuarocksPackage, fetchurl, fetchzip, luaAtLeast, luaOlder }:
      2 buildLuarocksPackage {
      3   pname = "optparse";
      4   version = "1.5-2";
      5   knownRockspec = (fetchurl {
      6     url    = "mirror://luarocks/optparse-1.5-2.rockspec";
      7     sha256 = "12hijk3wrhr6cc173qisgagd7sfdnbrfxyi7ksq4wcdrcazly0j8";
      8   }).outPath;
      9   src = fetchzip {
     10     url    = "http://github.com/gvvaughan/optparse/archive/v1.5.zip";
     11     sha256 = "1kkpx21f4cqldlvwp9n5r5vmqi341absvxcidc7wd48ragfm1byq";
     12   };
     13 
     14   disabled = luaOlder "5.1" || luaAtLeast "5.5";
     15 
     16   meta = {
     17     homepage = "http://gvvaughan.github.io/optparse";
     18     description = "Parse and process command-line options";
     19     license.fullName = "MIT/X11";
     20   };
     21 }