diff options
author | Lluís Batlle i Rossell <viric@viric.name> | 2012-09-23 20:50:24 +0200 |
---|---|---|
committer | Lluís Batlle i Rossell <viric@viric.name> | 2012-09-23 20:51:15 +0200 |
commit | 57b578189b4b6c868dc17772e0655347a330e37e (patch) | |
tree | 24417dbca9fb52c8c1973cd8afed5bf8c7ff5570 /pkgs/os-specific/linux | |
parent | 22e050f8c6680d8de85c94229f5bafdefc6d7958 (diff) | |
download | nixlib-57b578189b4b6c868dc17772e0655347a330e37e.tar nixlib-57b578189b4b6c868dc17772e0655347a330e37e.tar.gz nixlib-57b578189b4b6c868dc17772e0655347a330e37e.tar.bz2 nixlib-57b578189b4b6c868dc17772e0655347a330e37e.tar.lz nixlib-57b578189b4b6c868dc17772e0655347a330e37e.tar.xz nixlib-57b578189b4b6c868dc17772e0655347a330e37e.tar.zst nixlib-57b578189b4b6c868dc17772e0655347a330e37e.zip |
Adding cryptodev-linux, and made openssl use it optionally.
I'm trying to get the CESA of the sheevaplug available to openssl.
Diffstat (limited to 'pkgs/os-specific/linux')
-rw-r--r-- | pkgs/os-specific/linux/cryptodev/default.nix | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/cryptodev/default.nix b/pkgs/os-specific/linux/cryptodev/default.nix new file mode 100644 index 000000000000..4d7489034931 --- /dev/null +++ b/pkgs/os-specific/linux/cryptodev/default.nix @@ -0,0 +1,29 @@ +{ fetchurl, stdenv, kernel, onlyHeaders ? false }: + +stdenv.mkDerivation rec { + name = "cryptodev-linux-1.5"; + + src = fetchurl { + url = "http://download.gna.org/cryptodev-linux/${name}.tar.gz"; + sha256 = "13hybl5p0ck0vgi2gxmiwa2810gcfk78kdy17ai8nczj8il15mn0"; + }; + + buildPhase = if (!onlyHeaders) then '' + make -C ${kernel}/lib/modules/${kernel.modDirVersion}/build \ + INSTALL_PATH=$out + '' else ":"; + + installPhase = stdenv.lib.optionalString (!onlyHeaders) '' + make -C ${kernel}/lib/modules/${kernel.modDirVersion}/build \ + INSTALL_PATH=$out SUBDIRS=`pwd` modules_install + '' + '' + mkdir -p $out/include/crypto + cp crypto/cryptodev.h $out/include/crypto + ''; + + meta = { + description = "Device that allows access to Linux kernel cryptographic drivers"; + homepage = http://home.gna.org/cryptodev-linux/; + license = "GPLv2+"; + }; +} |