Added i3wm. Added newer version of file. (this time tested, I screwed up a patch by garbas)

svn path=/nixpkgs/trunk/; revision=33952
This commit is contained in:
Rob Vermaas
2012-04-30 14:34:57 +00:00
parent 0823167b43
commit 97cac0a58c
8 changed files with 278 additions and 4 deletions

View File

@@ -0,0 +1,16 @@
{fetchurl, stdenv}:
stdenv.mkDerivation rec {
name = "dbacl-1.14";
src = fetchurl {
url = "http://www.lbreyer.com/gpl/${name}.tar.gz";
md5 = "85bfd88bc20f326dc0f31e794948e21c";
};
meta = {
homepage = http://dbacl.sourceforge.net/;
longDescription = "a digramic Bayesian classifier for text recognition.";
maintainers = [ stdenv.lib.maintainers.garbas ];
license = stdenv.lib.licenses.gpl3;
};
}

View File

@@ -0,0 +1,17 @@
{stdenv, fetchurl, zlib}:
stdenv.mkDerivation rec {
name = "file-5.11";
buildInputs = [ zlib ];
src = fetchurl {
url = "ftp://ftp.astron.com/pub/file/${name}.tar.gz";
sha256 = "c70ae29a28c0585f541d5916fc3248c3e91baa481f63d7ccec53d1534cbcc9b7";
};
meta = {
description = "A program that shows the type of files";
homepage = "http://darwinsys.com/file";
};
}

View File

@@ -0,0 +1,11 @@
--- file-5.11/python/magic.py 2011-09-22 18:57:41.000000000 +0200
+++ file-5.11/python/magic.py.1 2012-04-30 15:00:31.750213810 +0200
@@ -13,7 +13,7 @@
Loads the shared library through ctypes and returns a library
L{ctypes.CDLL} instance
"""
- return ctypes.cdll.LoadLibrary(find_library('magic'))
+ return ctypes.CDLL('libmagic.so')
_libraries = {}
_libraries['magic'] = _init()