f8e3247113
Includes new dependency packages: - nimPackages.python: 1.2 - nimPackages.rocksdb: 0.2.0 - nimPackages.snappy: 0.1.0 - nimPackages.spryvm: 0.9.3 - nimPackages.stew: 0.1.0 - nimPackages.tempfile: 0.1.7 - nimPackages.ui: 0.9.4
25 lines
727 B
Nix
25 lines
727 B
Nix
{ lib, buildNimPackage, fetchFromGitHub, snappy }:
|
|
|
|
buildNimPackage rec {
|
|
pname = "snappy";
|
|
version = "0.1.0";
|
|
src = fetchFromGitHub {
|
|
owner = "jangko";
|
|
repo = pname;
|
|
rev = "d13e2ccb2acaa4e8dedce4f25e8dbf28e19278a6";
|
|
hash = "sha256-18CFRuDK+E701MHrCixx22QSVmglTc0EJwrMCsKwayM=";
|
|
};
|
|
propagatedBuildInputs = [ snappy ];
|
|
patches = [ ./config.patch ];
|
|
doCheck = true;
|
|
preCheck = ''
|
|
mkdir $NIX_BUILD_TOP/nimcache/
|
|
mv -v tests/data $NIX_BUILD_TOP/nimcache/data
|
|
''; # test standards, please
|
|
meta = with lib;
|
|
src.meta // {
|
|
description = "Nim implementation of snappy compression algorithm";
|
|
license = [ lib.licenses.mit ];
|
|
maintainers = [ maintainers.ehmry ];
|
|
};
|
|
}
|