aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/applications/misc/hivemind/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/applications/misc/hivemind/default.nix')
-rw-r--r--infra/libkookie/nixpkgs/pkgs/applications/misc/hivemind/default.nix25
1 files changed, 25 insertions, 0 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/applications/misc/hivemind/default.nix b/infra/libkookie/nixpkgs/pkgs/applications/misc/hivemind/default.nix
new file mode 100644
index 000000000000..8a8f80f57977
--- /dev/null
+++ b/infra/libkookie/nixpkgs/pkgs/applications/misc/hivemind/default.nix
@@ -0,0 +1,25 @@
+{ stdenv, buildGoPackage, fetchFromGitHub, runtimeShell }:
+
+buildGoPackage rec {
+ pname = "hivemind";
+ version = "1.0.6";
+ goPackagePath = "github.com/DarthSim/hivemind";
+
+ postPatch = ''
+ substituteInPlace process.go --replace \"/bin/sh\" \"${runtimeShell}\"
+ '';
+
+ src = fetchFromGitHub {
+ owner = "DarthSim";
+ repo = "hivemind";
+ rev = "v${version}";
+ sha256 = "0afcnd03wsdphbbpha65rv5pnv0x6ldnnm6rnv1m6xkkywgnzx95";
+ };
+
+ meta = with stdenv.lib; {
+ homepage = "https://github.com/DarthSim/";
+ description = "Process manager for Procfile-based applications";
+ license = with licenses; [ mit ];
+ maintainers = [ maintainers.sveitser ];
+ };
+}