aboutsummaryrefslogtreecommitdiff
path: root/modules/laplace/package.nix
diff options
context:
space:
mode:
authorMax Audron <audron@cocaine.farm>2024-03-29 13:55:03 +0100
committerMax Audron <audron@cocaine.farm>2024-03-29 13:55:03 +0100
commit3e39e00ee7d3023219f75d9164232a5cde187aeb (patch)
tree2fd83cf0119af572028ddedb70d1d9268effc037 /modules/laplace/package.nix
parentadd hydra secrets (diff)
add rtmp and laplace
Diffstat (limited to 'modules/laplace/package.nix')
-rw-r--r--modules/laplace/package.nix29
1 files changed, 29 insertions, 0 deletions
diff --git a/modules/laplace/package.nix b/modules/laplace/package.nix
new file mode 100644
index 0000000..349eca4
--- /dev/null
+++ b/modules/laplace/package.nix
@@ -0,0 +1,29 @@
+{ stdenv, lib, fetchFromGitHub, makeWrapper, buildGoModule, file, glibc }:
+
+with lib;
+
+buildGoModule rec {
+ pname = "laplace";
+ version = "6d87705";
+
+ src = fetchFromGitHub {
+ owner = "adamyordan";
+ repo = "laplace";
+ rev = "6d87705";
+ hash = "sha256-sBeFuyDzDe1RQdxxsWqwA6pEAJqvN41evCJ6Ynw9/FA=";
+ };
+
+ buildInputs = [ stdenv ];
+
+ postInstall = ''
+ mkdir -p $out/share/laplace
+ cp -r ./files $out/share/laplace/files
+ '';
+
+ vendorHash = "sha256-wuSJJXzlSD1RkBmRRVUMVx+UlrIZ8NhQaFp6ZwiNSwg=";
+
+ meta = {
+ description = "WebRTC Screen Sharing";
+ homepage = "https://github.com/adamyordan/laplace";
+ };
+}