mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 08:31:59 +00:00
bd01fad0ed
In line with the Nixpkgs manual. A mechanical change, done with this command: find pkgs -name "*.nix" | \ while read f; do \ sed -e 's/description\s*=\s*"\([a-z]\)/description = "\u\1/' -i "$f"; \ done I manually skipped some: * Descriptions starting with an abbreviation, a user name or package name * Frequently generated expressions (haskell-packages.nix)
33 lines
1,001 B
Nix
33 lines
1,001 B
Nix
{ stdenv, fetchurl, zlib }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "kyotocabinet-1.2.76";
|
|
|
|
src = fetchurl {
|
|
url = "http://fallabs.com/kyotocabinet/pkg/${name}.tar.gz";
|
|
sha256 = "0g6js20x7vnpq4p8ghbw3mh9wpqksya9vwhzdx6dnlf354zjsal1";
|
|
};
|
|
|
|
prePatch = stdenv.lib.optionalString stdenv.isDarwin ''
|
|
substituteInPlace kccommon.h \
|
|
--replace tr1/unordered_map unordered_map \
|
|
--replace tr1/unordered_set unordered_set \
|
|
--replace tr1::hash std::hash \
|
|
--replace tr1::unordered_map std::unordered_map \
|
|
--replace tr1::unordered_set std::unordered_set
|
|
|
|
substituteInPlace lab/kcdict/Makefile --replace stdc++ c++
|
|
substituteInPlace configure --replace stdc++ c++
|
|
'';
|
|
|
|
buildInputs = [ zlib ];
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = http://fallabs.com/kyotocabinet;
|
|
description = "A library of routines for managing a database";
|
|
license = licenses.gpl3;
|
|
platforms = platforms.all;
|
|
maintainers = with maintainers; [ wkennington ];
|
|
};
|
|
}
|