mirror of
https://github.com/hyprspace/hyprspace.git
synced 2026-09-14 11:06:22 +05:00
* Added ServicesACL config Signed-off-by: Roland Urbano <urbano.roland@gmail.com> * Adding filter to service receiver Signed-off-by: Roland Urbano <urbano.roland@gmail.com> * Implemented ACL handling in ServiceNetwork Signed-off-by: Roland Urbano <roland.urbano@nts.eu> * Updated Schema and added parsing for acl config Signed-off-by: Roland Urbano <urbano.roland@gmail.com> * Updated service package and fixed ACL handling Signed-off-by: Roland Urbano <urbano.roland@gmail.com> * go-jsonschema: 0.16.0 -> 0.22.0 * nixos: set acls on services directly * config: move ServicesACL to Services * svc: simplify acl logic * remove whitespace * apply nixfmt --------- Signed-off-by: Roland Urbano <urbano.roland@gmail.com> Signed-off-by: Roland Urbano <roland.urbano@nts.eu> Co-authored-by: Max <max@privatevoid.net>
38 lines
796 B
Nix
38 lines
796 B
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "go-jsonschema";
|
|
version = "0.22.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "omissis";
|
|
repo = "go-jsonschema";
|
|
rev = "v${version}";
|
|
hash = "sha256-ffrP4L5cfK75Tw/xfcdXAwGUP8WLL+81ltBDb/P5Gwo=";
|
|
};
|
|
|
|
env.GOWORK = "off";
|
|
|
|
vendorHash = "sha256-mCOJ8GROrbNXH7CSLLMZj/4wTa65hscTt8RzIxzgG+A=";
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X=main.version=${version}"
|
|
"-X=main.gitCommit=${src.rev}"
|
|
"-X=main.buildTime=1970-01-01T00:00:00Z"
|
|
];
|
|
|
|
subPackages = [ "." ];
|
|
meta = with lib; {
|
|
description = "A tool to generate Go data types from JSON Schema definitions";
|
|
homepage = "https://github.com/omissis/go-jsonschema";
|
|
license = licenses.mit;
|
|
mainProgram = "go-jsonschema";
|
|
};
|
|
}
|