nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

default.nix (349B)


      1 { fetchurl }:
      2 
      3 {
      4   owner,
      5   repo,
      6   version,
      7   name,
      8   ...
      9 }@args:
     10 let
     11   baseUrl = "https://github.com/${owner}/${repo}";
     12 in
     13 (
     14   fetchurl (
     15     {
     16       url = "${baseUrl}/releases/download/${version}/${name}";
     17     }
     18     // removeAttrs args [
     19       "owner"
     20       "repo"
     21       "version"
     22       "name"
     23     ]
     24   )
     25   // {
     26     meta.homepage = baseUrl;
     27   }
     28 )