summary refs log tree commit diff
path: root/pkgs/os-specific/linux/otpw
diff options
context:
space:
mode:
authorLluís Batlle i Rossell <viric@viric.name>2013-03-30 21:05:29 +0100
committerLluís Batlle i Rossell <viric@viric.name>2013-03-30 21:06:06 +0100
commit13d40ae54db8cf5f39c350d14e2a6a013a9ec34b (patch)
treeab993111a8d897a713a6e04407da3c17a6e32e1a /pkgs/os-specific/linux/otpw
parentc908d2130fe07c1b0a418513af1ed152a6934c35 (diff)
downloadnixpkgs-13d40ae54db8cf5f39c350d14e2a6a013a9ec34b.tar
nixpkgs-13d40ae54db8cf5f39c350d14e2a6a013a9ec34b.tar.gz
nixpkgs-13d40ae54db8cf5f39c350d14e2a6a013a9ec34b.tar.bz2
nixpkgs-13d40ae54db8cf5f39c350d14e2a6a013a9ec34b.tar.lz
nixpkgs-13d40ae54db8cf5f39c350d14e2a6a013a9ec34b.tar.xz
nixpkgs-13d40ae54db8cf5f39c350d14e2a6a013a9ec34b.tar.zst
nixpkgs-13d40ae54db8cf5f39c350d14e2a6a013a9ec34b.zip
otpw: fixing the entropy source (PATH variables)
I don't know why it set some hardcoded PATH.
Diffstat (limited to 'pkgs/os-specific/linux/otpw')
-rw-r--r--pkgs/os-specific/linux/otpw/default.nix6
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgs/os-specific/linux/otpw/default.nix b/pkgs/os-specific/linux/otpw/default.nix
index 423950be539..fe5f938b75b 100644
--- a/pkgs/os-specific/linux/otpw/default.nix
+++ b/pkgs/os-specific/linux/otpw/default.nix
@@ -1,15 +1,17 @@
 { stdenv, fetchurl, pam }:
 
-stdenv.mkDerivation {
+stdenv.mkDerivation rec {
   name = "otpw-1.3";
 
   src = fetchurl {
-    url = http://www.cl.cam.ac.uk/~mgk25/download/otpw-1.3.tar.gz;
+    url = "http://www.cl.cam.ac.uk/~mgk25/download/${name}.tar.gz";
     sha256 = "1k3hc7xbxz6hkc55kvddi3cibafwf93ivn58sy1l888d3l5dwmrk";
   };
 
   patchPhase = ''
     sed -i 's/^CFLAGS.*/CFLAGS=-O2 -fPIC/' Makefile
+    sed -i -e 's,PATH=.*;,,' conf.h
+    sed -i -e '/ENTROPY_ENV/d' otpw-gen.c
   '';
 
   installPhase = ''