nur-packages

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

package.nix (789B)


      1 {
      2   lib,
      3   fetchFromGitHub,
      4   php,
      5   conf ? null,
      6 }:
      7 
      8 php.buildComposerProject (finalAttrs: {
      9   pname = "level0";
     10   version = "2025-07-17";
     11 
     12   src = fetchFromGitHub {
     13     owner = "Zverik";
     14     repo = "Level0";
     15     rev = "90966b7346e7086db178da0c610fb15bf4831339";
     16     hash = "sha256-VbufWA4pl4+6jOcaLQ5AZFhWKFoOKlcZFEuRbLJq4TQ=";
     17   };
     18 
     19   vendorHash = "sha256-+49ednqEuhTNO6t20SdkSYYSL9v8QNehxVWLgCuJWW0=";
     20 
     21   configFile = lib.optionalString (conf != null) (builtins.toFile "config.php" conf);
     22   preBuild = lib.optionalString (conf != null) "cp ${finalAttrs.configFile} www/config.php";
     23 
     24   meta = {
     25     description = "Web-based OpenStreetMap Editor";
     26     homepage = "https://github.com/Zverik/Level0";
     27     license = lib.licenses.wtfpl;
     28     maintainers = [ lib.maintainers.sikmir ];
     29   };
     30 })