Skip to content

Commit

Permalink
Merge pull request #1 from 0xB10C/fix-it
Browse files Browse the repository at this point in the history
fix it
  • Loading branch information
fjahr authored Oct 7, 2023
2 parents 3c7f953 + 8ce2c48 commit e8dae49
Showing 1 changed file with 46 additions and 37 deletions.
83 changes: 46 additions & 37 deletions default.nix
Original file line number Diff line number Diff line change
@@ -1,37 +1,46 @@
{
pkgs ? import <nixpkgs> {}
}:
with pkgs;
let
openbsd_src = fetchFromGitHub {
owner = "rpki-client";
repo = "rpki-client-openbsd";
# rev = "c1363a74cc718dbbaee38488a8598cd1c26f74f0";
rev = "rpki-client-8.2";
hash = "sha256-oErUjZn/a/Ka70+Z8Wb2L7UIulGPjF81bYAQ2wPvWfo=";
};
in stdenv.mkDerivation rec {
inherit openbsd_src;
buildInputs = [ git libressl expat zlib automake autoconf git libtool ];
name = "rpki-client";
version = "8.2";
src = fetchFromGitHub {
owner = "rpki-client";
repo = "rpki-client-portable";
rev = version;
hash = "sha256-oErUjZn/a/Ka70+Z8Wb2L7UIulGPjF81bYAQ2wPvWfo=";
};
unpackPhase = ''
echo ${src}
pwd
mkdir -p openbsd
cp -R ${openbsd_src}/* openbsd
cp -R ${src}/* .
chmod 700 -R .
sed -i 's|dir=`pwd`|dir=${src}|g' openbsd/update.sh
'';
configurePhase = ''
./autogen.sh
${src}/configure --prefix=$out
'';
}
{ pkgs ? import <nixpkgs> { } }:

with pkgs;

stdenv.mkDerivation rec {

name = "rpki-client";
version = "8.2";

src = fetchFromGitHub {
owner = "rpki-client";
repo = "rpki-client-portable";
rev = version;
hash = "sha256-oErUjZn/a/Ka70+Z8Wb2L7UIulGPjF81bYAQ2wPvWfo=";
};

openbsd_src = fetchFromGitHub {
owner = "rpki-client";
repo = "rpki-client-openbsd";
rev = "rpki-client-8.2";
hash = "sha256-zC3vbQLLWgImS+lYNWbHzkLrZTJvgPfH+W+FiSnH8Aw=";
};

buildInputs = [
git
libressl
expat
zlib
automake
autoconf
libtool
rsync
];

unpackPhase = ''
mkdir -p openbsd
cp -R ${openbsd_src}/* openbsd
cp -R ${src}/* .
chmod 700 -R .
'';

configurePhase = ''
./autogen.sh
./configure --prefix=$out
'';
}

0 comments on commit e8dae49

Please sign in to comment.