nur-packages

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

default.nix (789B)


      1 {
      2   lib,
      3   fetchFromGitHub,
      4   php,
      5   conf ? null,
      6 }:
      7 
      8 php.buildComposerProject (finalAttrs: {
      9   pname = "level0";
     10   version = "2024-06-24";
     11 
     12   src = fetchFromGitHub {
     13     owner = "Zverik";
     14     repo = "Level0";
     15     rev = "390c8108c3cd7c7599129542ea48ed6f792213d1";
     16     hash = "sha256-4gp3E4FdHAZX+PCi+v+f0cTVhB2MqkkIcGAQrXQqLZg=";
     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 })