emacsPackages.zstd: init at 0-unstable-2020-06-03 (#343489)

This commit is contained in:
Lin Jian 2024-09-23 09:43:52 +08:00 committed by GitHub
commit d21a022c9e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 39 additions and 0 deletions

View File

@ -29,6 +29,8 @@ lib.packagesFromDirectoryRecursive {
tree-sitter-langs = callPackage ./manual-packages/tree-sitter-langs { final = self; };
zstd = callPackage ./manual-packages/zstd { inherit (pkgs) zstd; };
# From old emacsPackages (pre emacsPackagesNg)
cedille = callPackage ./manual-packages/cedille { inherit (pkgs) cedille; };

View File

@ -0,0 +1,37 @@
{
lib,
melpaBuild,
stdenv,
fetchFromGitHub,
zstd,
}:
let
libExt = stdenv.hostPlatform.extensions.sharedLibrary;
in
melpaBuild {
pname = "zstd";
version = "0-unstable-2020-06-03";
src = fetchFromGitHub {
owner = "syohex";
repo = "emacs-zstd";
rev = "072b264e2cbd5c05be06a1208ebccc2dab44be39";
hash = "sha256-p8bxefytTOSV6vIG8PAPBXfVKA2rfmWdRtVwjE42mAw=";
};
buildInputs = [ zstd ];
preBuild = ''
$CC -std=gnu99 -shared -o zstd-core${libExt} zstd-core.c -lzstd
'';
files = ''(:defaults "zstd-core${libExt}")'';
meta = {
homepage = "https://github.com/syohex/emacs-zstd";
description = "Zstd binding for Emacs Lisp";
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ nagy ];
};
}