mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 00:43:20 +00:00
emacsPackages.zstd: init at 0-unstable-2020-06-03 (#343489)
This commit is contained in:
commit
d21a022c9e
@ -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; };
|
||||
|
||||
|
@ -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 ];
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user