noise-c: init at 20230309
This commit is contained in:
parent
16712976b4
commit
ab58a4a2dd
|
@ -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;
|
||||
|
|
|
@ -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 ];
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue