noise-c: init at 20230309

This commit is contained in:
Emery Hemingway 2023-05-09 12:00:56 +01:00
parent 16712976b4
commit ab58a4a2dd
2 changed files with 31 additions and 2 deletions

View File

@ -33,6 +33,8 @@
xdg_open_ng = final'.callPackage ./packages/xdg_open_ng { };
});
noise-c = final.callPackage ./packages/noise-c { };
python3Packages = prev.python3Packages.override {
overrides = final': prev': {
preserves = final'.callPackage ./packages/preserves-py { };
@ -59,8 +61,8 @@
packages = self.lib.mapAttrs (system: pkgs:
with pkgs; {
inherit fontconfig_actor libnotify_actor preserves-tools squeak squeaker
syndicate-server;
inherit fontconfig_actor libnotify_actor noise-c preserves-tools squeak
squeaker syndicate-server;
inherit (nimPackages) syndicate_utils xdg_open_ng;
preserves-nim = nimPackages.preserves;
preserves-py = python3Packages.preserves;

View File

@ -0,0 +1,27 @@
{ lib, stdenv, fetchFromGitHub, autoreconfHook }:
stdenv.mkDerivation rec {
pname = "noise-c";
version = "20230309";
outputs = [ "bin" "out" ];
src = fetchFromGitHub {
owner = "rweather";
repo = pname;
rev = "ffa626bddd1f8182e47c634af686108ca5049e56";
hash = "sha256-HkcyV/WT4UNFWczbZZIDW2fWRliQb8IEykv2d7bZM7w=";
};
nativeBuildInputs = [ autoreconfHook ];
# excise protobuf bloat
prePatch = ''
substituteInPlace tools/Makefile.am \
--replace 'SUBDIRS = keytool protoc' 'SUBDIRS = keytool'
'';
meta = src.meta // {
description = "Plain C implementation of the Noise Protocol";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ ehmry ];
};
}