1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-23 06:01:15 +00:00

easyrsa: use autoreconfHook

This commit is contained in:
Robin Gloster 2016-08-24 19:35:08 +00:00
parent 35d836660f
commit d8679e4957

View file

@ -1,5 +1,5 @@
{ stdenv, fetchurl, autoconf, automake111x, makeWrapper
, gnugrep, openssl}:
{ stdenv, fetchurl, autoreconfHook, makeWrapper
, gnugrep, openssl }:
stdenv.mkDerivation rec {
name = "easyrsa-2.2.0";
@ -9,20 +9,12 @@ stdenv.mkDerivation rec {
sha256 = "1xq4by5frb6ikn53ss3y8v7ss639dccxfq8jfrbk07ynkmk668qk";
};
# Copy missing files and autoreconf
preConfigure = ''
cp ${automake111x}/share/automake/install-sh .
cp ${automake111x}/share/automake/missing .
autoreconf
'';
preBuild = ''
mkdir -p $out/share/easy-rsa
'';
nativeBuildInputs = [ autoconf makeWrapper automake111x ];
buildInputs = [ gnugrep openssl];
nativeBuildInputs = [ autoreconfHook makeWrapper ];
buildInputs = [ gnugrep openssl ];
# Make sane defaults and patch default config vars
postInstall = ''