Phorge extensions developed for Recap Time Squad HQ Issue Tracker, available for use as a open-source repo. issues.recaptime.dev/source/phorge-extensions
phorge phorge-extensions phabricator

chore: initial commit with devenv setup

README still in the works, going to add license file
later.

Signed-off-by: Andrei Jiroh Halili <ajhalili2006@andreijiroh.dev>

+236
+11
.gitignore
··· 1 + # Devenv 2 + .devenv* 3 + devenv.local.nix 4 + devenv.local.yaml 5 + 6 + # direnv 7 + .direnv 8 + .envrc.local 9 + 10 + # pre-commit 11 + .pre-commit-config.yaml
+3
README.md
··· 1 + # `@recaptime-dev/phorge-extensions` - Phorge Extensions 2 + 3 + ## Usage
+123
devenv.lock
··· 1 + { 2 + "nodes": { 3 + "devenv": { 4 + "locked": { 5 + "dir": "src/modules", 6 + "lastModified": 1772320113, 7 + "owner": "cachix", 8 + "repo": "devenv", 9 + "rev": "65c59037d2dba83876ec9da8d22584d604553f16", 10 + "type": "github" 11 + }, 12 + "original": { 13 + "dir": "src/modules", 14 + "owner": "cachix", 15 + "repo": "devenv", 16 + "type": "github" 17 + } 18 + }, 19 + "flake-compat": { 20 + "flake": false, 21 + "locked": { 22 + "lastModified": 1767039857, 23 + "owner": "NixOS", 24 + "repo": "flake-compat", 25 + "rev": "5edf11c44bc78a0d334f6334cdaf7d60d732daab", 26 + "type": "github" 27 + }, 28 + "original": { 29 + "owner": "NixOS", 30 + "repo": "flake-compat", 31 + "type": "github" 32 + } 33 + }, 34 + "git-hooks": { 35 + "inputs": { 36 + "flake-compat": "flake-compat", 37 + "gitignore": "gitignore", 38 + "nixpkgs": [ 39 + "nixpkgs" 40 + ] 41 + }, 42 + "locked": { 43 + "lastModified": 1772024342, 44 + "owner": "cachix", 45 + "repo": "git-hooks.nix", 46 + "rev": "6e34e97ed9788b17796ee43ccdbaf871a5c2b476", 47 + "type": "github" 48 + }, 49 + "original": { 50 + "owner": "cachix", 51 + "repo": "git-hooks.nix", 52 + "type": "github" 53 + } 54 + }, 55 + "gitignore": { 56 + "inputs": { 57 + "nixpkgs": [ 58 + "git-hooks", 59 + "nixpkgs" 60 + ] 61 + }, 62 + "locked": { 63 + "lastModified": 1762808025, 64 + "owner": "hercules-ci", 65 + "repo": "gitignore.nix", 66 + "rev": "cb5e3fdca1de58ccbc3ef53de65bd372b48f567c", 67 + "type": "github" 68 + }, 69 + "original": { 70 + "owner": "hercules-ci", 71 + "repo": "gitignore.nix", 72 + "type": "github" 73 + } 74 + }, 75 + "nixpkgs": { 76 + "inputs": { 77 + "nixpkgs-src": "nixpkgs-src" 78 + }, 79 + "locked": { 80 + "lastModified": 1770434727, 81 + "owner": "cachix", 82 + "repo": "devenv-nixpkgs", 83 + "rev": "8430f16a39c27bdeef236f1eeb56f0b51b33d348", 84 + "type": "github" 85 + }, 86 + "original": { 87 + "owner": "cachix", 88 + "ref": "rolling", 89 + "repo": "devenv-nixpkgs", 90 + "type": "github" 91 + } 92 + }, 93 + "nixpkgs-src": { 94 + "flake": false, 95 + "locked": { 96 + "lastModified": 1769922788, 97 + "narHash": "sha256-H3AfG4ObMDTkTJYkd8cz1/RbY9LatN5Mk4UF48VuSXc=", 98 + "owner": "NixOS", 99 + "repo": "nixpkgs", 100 + "rev": "207d15f1a6603226e1e223dc79ac29c7846da32e", 101 + "type": "github" 102 + }, 103 + "original": { 104 + "owner": "NixOS", 105 + "ref": "nixpkgs-unstable", 106 + "repo": "nixpkgs", 107 + "type": "github" 108 + } 109 + }, 110 + "root": { 111 + "inputs": { 112 + "devenv": "devenv", 113 + "git-hooks": "git-hooks", 114 + "nixpkgs": "nixpkgs", 115 + "pre-commit-hooks": [ 116 + "git-hooks" 117 + ] 118 + } 119 + } 120 + }, 121 + "root": "root", 122 + "version": 7 123 + }
+84
devenv.nix
··· 1 + { 2 + pkgs, 3 + lib, 4 + config, 5 + inputs, 6 + ... 7 + }: 8 + 9 + { 10 + # https://devenv.sh/packages/ 11 + packages = with pkgs; [ 12 + # dev tooling 13 + gitFull 14 + hadolint 15 + shellcheck 16 + shfmt 17 + github-cli 18 + glab 19 + ]; 20 + 21 + # https://devenv.sh/languages/ 22 + # languages.rust.enable = true; 23 + languages.php = { 24 + enable = true; 25 + version = "8.3"; 26 + extensions = [ 27 + "opcache" 28 + "ctype" 29 + "curl" 30 + "fileinfo" 31 + "gd" 32 + "iconv" 33 + "mbstring" 34 + "mysqli" 35 + "pdo_mysql" 36 + "pcntl" 37 + "posix" 38 + "sockets" 39 + "xml" 40 + "xmlwriter" 41 + "zip" 42 + "ldap" 43 + #"pecl-apcu" 44 + "bcmath" 45 + "tokenizer" 46 + "simplexml" 47 + "dom" 48 + ]; 49 + }; 50 + 51 + # https://devenv.sh/processes/ 52 + # processes.dev.exec = "${lib.getExe pkgs.watchexec} -n -- ls -la"; 53 + 54 + # https://devenv.sh/services/ 55 + # services.postgres.enable = true; 56 + 57 + # https://devenv.sh/scripts/ 58 + scripts.hello.exec = '' 59 + echo hello from $GREET 60 + ''; 61 + 62 + # https://devenv.sh/basics/ 63 + #enterShell = '' 64 + # hello # Run scripts directly 65 + # git --version # Use packages 66 + #''; 67 + 68 + # https://devenv.sh/tasks/ 69 + # tasks = { 70 + # "myproj:setup".exec = "mytool build"; 71 + # "devenv:enterShell".after = [ "myproj:setup" ]; 72 + # }; 73 + 74 + # https://devenv.sh/tests/ 75 + #enterTest = '' 76 + # echo "Running tests" 77 + # git --version | grep --color=auto "${pkgs.git.version}" 78 + #''; 79 + 80 + # https://devenv.sh/git-hooks/ 81 + # git-hooks.hooks.shellcheck.enable = true; 82 + 83 + # See full reference at https://devenv.sh/reference/options/ 84 + }
+15
devenv.yaml
··· 1 + # yaml-language-server: $schema=https://devenv.sh/devenv.schema.json 2 + inputs: 3 + nixpkgs: 4 + url: github:cachix/devenv-nixpkgs/rolling 5 + 6 + # If you're using non-OSS software, you can set allowUnfree to true. 7 + # allowUnfree: true 8 + 9 + # If you're willing to use a package that's vulnerable 10 + # permittedInsecurePackages: 11 + # - "openssl-1.1.1w" 12 + 13 + # If you have more than one devenv you can merge them 14 + #imports: 15 + # - ./backend