A .gitignore => .gitignore +2 -0
@@ 0,0 1,2 @@
+# ignore nix build artifacts
+/result
M README.md => README.md +23 -1
@@ 1,4 1,26 @@
-proc
+proc
====
Procfile executor
+
+For more information and alternative executors see https://github.com/ddollar/foreman
+
+Installation
+------------
+
+### Go
+```
+go install git.sr.ht/~mh/proc
+```
+
+### Nix flake
+```
+nix profile install git+https://git.sr.ht/~mh/proc
+```
+
+Usage
+------------
+
+```
+proc
+```
A default.nix => default.nix +0 -0
A flake.lock => flake.lock +60 -0
@@ 0,0 1,60 @@
+{
+ "nodes": {
+ "flake-utils": {
+ "inputs": {
+ "systems": "systems"
+ },
+ "locked": {
+ "lastModified": 1710146030,
+ "narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=",
+ "owner": "numtide",
+ "repo": "flake-utils",
+ "rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a",
+ "type": "github"
+ },
+ "original": {
+ "owner": "numtide",
+ "repo": "flake-utils",
+ "type": "github"
+ }
+ },
+ "nixpkgs": {
+ "locked": {
+ "lastModified": 1718876772,
+ "narHash": "sha256-tVC74MUx8Xo2YhkkkLD/Vr6u6NB9uqHcrk5+mrHY6Po=",
+ "owner": "nixos",
+ "repo": "nixpkgs",
+ "rev": "d01280a978c7403f23e2bc650aa43804420b4b52",
+ "type": "github"
+ },
+ "original": {
+ "owner": "nixos",
+ "repo": "nixpkgs",
+ "type": "github"
+ }
+ },
+ "root": {
+ "inputs": {
+ "flake-utils": "flake-utils",
+ "nixpkgs": "nixpkgs"
+ }
+ },
+ "systems": {
+ "locked": {
+ "lastModified": 1681028828,
+ "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
+ "owner": "nix-systems",
+ "repo": "default",
+ "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
+ "type": "github"
+ },
+ "original": {
+ "owner": "nix-systems",
+ "repo": "default",
+ "type": "github"
+ }
+ }
+ },
+ "root": "root",
+ "version": 7
+}
A flake.nix => flake.nix +23 -0
@@ 0,0 1,23 @@
+{
+ description = "A Procfile executor";
+
+ inputs = {
+ nixpkgs.url = "github:nixos/nixpkgs";
+ flake-utils.url = "github:numtide/flake-utils";
+ };
+
+ outputs = { self, nixpkgs, flake-utils }:
+ flake-utils.lib.eachDefaultSystem (system:
+ let pkgs = nixpkgs.legacyPackages.${system}; in
+ {
+ packages = {
+ default = pkgs.buildGoModule {
+ pname = "proc";
+ version = self.shortRev or "local";
+ src = ./.;
+ vendorHash = null;
+ };
+ };
+ }
+ );
+}
A gomod2nix.toml => gomod2nix.toml +3 -0
@@ 0,0 1,3 @@
+schema = 1
+
+[mod]