diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2015-09-30 22:09:37 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2015-09-30 22:09:37 +0200 |
commit | 307aeb5a19060a72881632b422f9d89cc17fc5c2 (patch) | |
tree | e1312d550da63c967a0b86a188d0d964cd7c7d55 /custom | |
parent | e58f7872ea9dafe383f0054efdca8535016e9541 (diff) | |
download | nixos-307aeb5a19060a72881632b422f9d89cc17fc5c2.tar nixos-307aeb5a19060a72881632b422f9d89cc17fc5c2.tar.gz nixos-307aeb5a19060a72881632b422f9d89cc17fc5c2.tar.bz2 nixos-307aeb5a19060a72881632b422f9d89cc17fc5c2.tar.xz nixos-307aeb5a19060a72881632b422f9d89cc17fc5c2.zip |
fixed download for sha2
Diffstat (limited to 'custom')
-rw-r--r-- | custom/luaSha2.nix | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/custom/luaSha2.nix b/custom/luaSha2.nix index d9b603f8..aa520c25 100644 --- a/custom/luaSha2.nix +++ b/custom/luaSha2.nix | |||
@@ -1,5 +1,5 @@ | |||
1 | { stdenv | 1 | { stdenv |
2 | , fetchurl | 2 | , fetchgit |
3 | , pkgs | 3 | , pkgs |
4 | }: | 4 | }: |
5 | 5 | ||
@@ -7,9 +7,10 @@ let | |||
7 | lua = pkgs.lua51Packages.lua; | 7 | lua = pkgs.lua51Packages.lua; |
8 | in pkgs.lua51Packages.buildLuaPackage { | 8 | in pkgs.lua51Packages.buildLuaPackage { |
9 | name = "luaSha2"; | 9 | name = "luaSha2"; |
10 | src = fetchurl { | 10 | src = fetchgit { |
11 | url = "https://sha2.googlecode.com/archive/02bd4bfdc8062c7e1ae51c5a72906efc0a6375ee.tar.gz"; | 11 | url = "https://code.google.com/p/sha2"; |
12 | sha256 = "18v0pn10cs6133jzm80sj2aw0ycpls150k9p0gplagap6xhzp6j2"; | 12 | rev = "02bd4bfdc8062c7e1ae51c5a72906efc0a6375ee"; |
13 | sha256 = "57ca5f1fb63b00aba7bcbb6e153a7878bc855a0cc6fb539abba33933da727c6f"; | ||
13 | }; | 14 | }; |
14 | buildPhase = '' | 15 | buildPhase = '' |
15 | gcc -L${lua}/lib -I$LUA_INC -I. sha2.c sha2lib.c -fPIC -DSHA2_USE_INTTYPES_H -DBYTE_ORDER -DLITTLE_ENDIAN -llua -shared -o sha2.so | 16 | gcc -L${lua}/lib -I$LUA_INC -I. sha2.c sha2lib.c -fPIC -DSHA2_USE_INTTYPES_H -DBYTE_ORDER -DLITTLE_ENDIAN -llua -shared -o sha2.so |