diff options
author | Rob Vermaas <rob.vermaas@gmail.com> | 2012-04-30 13:45:50 +0000 |
---|---|---|
committer | Rob Vermaas <rob.vermaas@gmail.com> | 2012-04-30 13:45:50 +0000 |
commit | 0362f55a222a1b857451b29da2c63bdc6cbdba5a (patch) | |
tree | a1769e25dfc66a7ef5e915f56edaa8976d6e4993 /pkgs/tools/misc/file | |
parent | 191d2e4be6ce0f6550528b62d6470ca60dac4b66 (diff) | |
download | nixpkgs-0362f55a222a1b857451b29da2c63bdc6cbdba5a.tar nixpkgs-0362f55a222a1b857451b29da2c63bdc6cbdba5a.tar.gz nixpkgs-0362f55a222a1b857451b29da2c63bdc6cbdba5a.tar.bz2 nixpkgs-0362f55a222a1b857451b29da2c63bdc6cbdba5a.tar.lz nixpkgs-0362f55a222a1b857451b29da2c63bdc6cbdba5a.tar.xz nixpkgs-0362f55a222a1b857451b29da2c63bdc6cbdba5a.tar.zst nixpkgs-0362f55a222a1b857451b29da2c63bdc6cbdba5a.zip |
add missing files from previous commit
svn path=/nixpkgs/trunk/; revision=33950
Diffstat (limited to 'pkgs/tools/misc/file')
-rw-r--r-- | pkgs/tools/misc/file/511.nix | 17 | ||||
-rw-r--r-- | pkgs/tools/misc/file/python.patch | 11 |
2 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/tools/misc/file/511.nix b/pkgs/tools/misc/file/511.nix new file mode 100644 index 00000000000..4e62462b8b3 --- /dev/null +++ b/pkgs/tools/misc/file/511.nix @@ -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"; + }; +} diff --git a/pkgs/tools/misc/file/python.patch b/pkgs/tools/misc/file/python.patch new file mode 100644 index 00000000000..8ecbc9a81fd --- /dev/null +++ b/pkgs/tools/misc/file/python.patch @@ -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() |