initial commit
This commit is contained in:
28
configuration/rtmp-auth/package.nix
Normal file
28
configuration/rtmp-auth/package.nix
Normal file
@@ -0,0 +1,28 @@
|
||||
{ lib
|
||||
, buildGoModule
|
||||
, fetchFromGitHub
|
||||
, statik
|
||||
, protobuf
|
||||
, protoc-gen-go
|
||||
}: buildGoModule (finalAttrs: {
|
||||
pname = "rtmp-auth";
|
||||
version = "1.1.0";
|
||||
|
||||
src = ./src; /* fetchFromGitHub {
|
||||
owner = "voc";
|
||||
repo = "${finalAttrs.pname}";
|
||||
rev = "master";
|
||||
hash = "sha256-71PvNBKdvkNSqwCHWZZVAHPa1eEx1Ba3RZqmLy4CBn8=";
|
||||
};
|
||||
*/
|
||||
|
||||
preBuild = ''
|
||||
PATH=$PATH:${protoc-gen-go}/bin ${lib.getExe protobuf} -I=storage/ --go_opt=paths=source_relative --go_out=storage/ storage/storage.proto
|
||||
${lib.getExe statik} -f -src=public/ -dest=.
|
||||
'';
|
||||
|
||||
vendorHash = "sha256-rZZMLZtCvXJmMKYr4rPLTaHqtV6QouKClZgRYlJM1sw=";
|
||||
|
||||
meta.mainProgram = finalAttrs.pname;
|
||||
|
||||
})
|
||||
Reference in New Issue
Block a user