From 34369b525e68511915373cbd8919b883cf70f12c Mon Sep 17 00:00:00 2001 From: Anish Lakhwara Date: Sat, 5 Aug 2023 13:02:35 -0700 Subject: [PATCH] librecast: package librecast Co-authored-by: Jason Odoom Co-authored-by: Anish Lakhwara Co-authored-by: Dominic Mills Co-authored-by: Albert Chae Co-authored-by: Jack Leightcap Signed-off-by: Jack Leightcap --- all-packages.nix | 1 + pkgs/librecast/default.nix | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 pkgs/librecast/default.nix diff --git a/all-packages.nix b/all-packages.nix index 588ca1ec3..3aa892b29 100644 --- a/all-packages.nix +++ b/all-packages.nix @@ -7,6 +7,7 @@ liberaforms = callPackage ./pkgs/liberaforms {}; liberaforms-env = callPackage ./pkgs/liberaforms/env.nix {}; libgnunetchat = callPackage ./pkgs/libgnunetchat {}; + librecast = callPackage ./pkgs/librecast {inherit lcrq;}; }; nixpkgs-candidates = { diff --git a/pkgs/librecast/default.nix b/pkgs/librecast/default.nix new file mode 100644 index 000000000..7a05feaf1 --- /dev/null +++ b/pkgs/librecast/default.nix @@ -0,0 +1,21 @@ +{ + stdenv, + pkgs, + fetchFromGitea, + lcrq, + ... +}: +stdenv.mkDerivation rec { + name = "librecast"; + version = "0.6.1"; + + src = fetchFromGitea { + domain = "codeberg.org"; + owner = "librecast"; + repo = "librecast"; + rev = "v${version}"; + sha256 = "sha256-o7ZPczQOw45kAAyu0fHCTKTUC78W0gkuL2Qge0+1Pc4="; + }; + buildInputs = [lcrq pkgs.libsodium]; + installFlags = ["PREFIX=$(out)"]; +}