mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-03 18:54:42 +00:00
lzfse: modernize derivation (#348766)
This commit is contained in:
commit
964bdaac30
@ -1,19 +1,24 @@
|
|||||||
{ lib, stdenv, fetchFromGitHub, cmake }:
|
{
|
||||||
|
cmake,
|
||||||
|
fetchFromGitHub,
|
||||||
|
lib,
|
||||||
|
stdenv,
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "lzfse";
|
pname = "lzfse";
|
||||||
version = "1.0";
|
version = "1.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "lzfse";
|
owner = "lzfse";
|
||||||
repo = "lzfse";
|
repo = "lzfse";
|
||||||
rev = "lzfse-${version}";
|
rev = "lzfse-${finalAttrs.version}";
|
||||||
sha256 = "1mfh6y6vpvxsdwmqmfbkqkwvxc0pz2dqqc72c6fk9sbsrxxaghd5";
|
hash = "sha256-pcGnes966TSdYeIwjJv4F7C++cRzuYorb7rvu4030NU=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake ];
|
nativeBuildInputs = [ cmake ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = {
|
||||||
homepage = "https://github.com/lzfse/lzfse";
|
homepage = "https://github.com/lzfse/lzfse";
|
||||||
description = "Reference C implementation of the LZFSE compressor";
|
description = "Reference C implementation of the LZFSE compressor";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
@ -21,9 +26,9 @@ stdenv.mkDerivation rec {
|
|||||||
LZFSE is a Lempel-Ziv style data compression algorithm using Finite State Entropy coding.
|
LZFSE is a Lempel-Ziv style data compression algorithm using Finite State Entropy coding.
|
||||||
It targets similar compression rates at higher compression and decompression speed compared to deflate using zlib.
|
It targets similar compression rates at higher compression and decompression speed compared to deflate using zlib.
|
||||||
'';
|
'';
|
||||||
platforms = platforms.unix;
|
platforms = lib.platforms.unix;
|
||||||
license = licenses.bsd3;
|
license = lib.licenses.bsd3;
|
||||||
maintainers = [ ];
|
maintainers = with lib.maintainers; [ KSJ2000 ];
|
||||||
mainProgram = "lzfse";
|
mainProgram = "lzfse";
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user