package.nix (789B)
1 { 2 lib, 3 fetchFromGitHub, 4 php, 5 conf ? null, 6 }: 7 8 php.buildComposerProject (finalAttrs: { 9 pname = "level0"; 10 version = "2026-03-08"; 11 12 src = fetchFromGitHub { 13 owner = "Zverik"; 14 repo = "Level0"; 15 rev = "3346f1b60e32a4d0913bd03342c56b43b1e9bf75"; 16 hash = "sha256-jzF9LlOsLTlp3+VS3E+CZ5hNsKgv2c0o4O4OkLuqIuA="; 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 })
