diff options
Diffstat (limited to 'pkgs/tools/admin')
-rw-r--r-- | pkgs/tools/admin/lxd/default.nix | 17 | ||||
-rw-r--r-- | pkgs/tools/admin/synapse-admin/default.nix | 26 |
2 files changed, 28 insertions, 15 deletions
diff --git a/pkgs/tools/admin/lxd/default.nix b/pkgs/tools/admin/lxd/default.nix index e4d2b714610f6..24e241f1b247b 100644 --- a/pkgs/tools/admin/lxd/default.nix +++ b/pkgs/tools/admin/lxd/default.nix @@ -11,28 +11,15 @@ buildGoPackage rec { pname = "lxd"; - version = "4.19"; + version = "4.20"; goPackagePath = "github.com/lxc/lxd"; src = fetchurl { url = "https://linuxcontainers.org/downloads/lxd/lxd-${version}.tar.gz"; - sha256 = "0mxbzg8xra0qpd3g3z1b230f0519h56x4jnn09lbbqa92p5zck3f"; + sha256 = "1mcf4i4z9y4l895v50amx8nix6wnaxv9h44012vj8w6wwbr4wl1m"; }; - patches = [ - # lxd/checkfeature: check whether the kernel supports core scheduling - (fetchpatch { - url = "https://github.com/lxc/lxd/commit/ba6be1043714458b29c4b37687d4f624ee421943.patch"; - sha256 = "0716129n70c6i695fyi1j8q6cls7g62vkdpcrlfrr9i324y3w1dx"; - }) - # feat: add support for nixOS path - (fetchpatch { - url = "https://github.com/lxc/lxd/commit/eeace06b2e3151786e94811ada8c658cce479f6d.patch"; - sha256 = "sha256-knXlvcSvMPDeR0KqHFgh6YQZc+CSJ8yEqGE/vQMciEk="; - }) - ]; - postPatch = '' substituteInPlace shared/usbid/load.go \ --replace "/usr/share/misc/usb.ids" "${hwdata}/share/hwdata/usb.ids" diff --git a/pkgs/tools/admin/synapse-admin/default.nix b/pkgs/tools/admin/synapse-admin/default.nix new file mode 100644 index 0000000000000..8ca0816f9e428 --- /dev/null +++ b/pkgs/tools/admin/synapse-admin/default.nix @@ -0,0 +1,26 @@ +{ lib +, stdenv +, fetchzip +}: + +stdenv.mkDerivation rec { + pname = "synapse-admin"; + version = "0.8.3"; + + src = fetchzip { + url = "https://github.com/Awesome-Technologies/synapse-admin/releases/download/${version}/synapse-admin-${version}.tar.gz"; + hash = "sha256-LAdMxzUffnykiDHvQYu9uNxK4428Q9CxQY2q02AcUco="; + }; + + installPhase = '' + cp -r . $out + ''; + + meta = with lib; { + description = "Admin UI for Synapse Homeservers"; + homepage = "https://github.com/Awesome-Technologies/synapse-admin"; + license = licenses.apsl20; + platforms = platforms.all; + maintainers = with maintainers; [ mkg20001 ]; + }; +} |