shallot: add patches to fix with openssl 1.1

This commit is contained in:
Robin Gloster 2019-08-21 17:13:09 +02:00
parent bbf133d07e
commit babb9f0cc1
No known key found for this signature in database
GPG key ID: D5C458DF6DD97EDF

View file

@ -1,12 +1,10 @@
{
stdenv, fetchFromGitHub,
openssl
{ stdenv, fetchFromGitHub, fetchpatch
, openssl
}:
let
stdenv.mkDerivation rec {
pname = "shallot";
version = "0.0.3";
in stdenv.mkDerivation {
name = "shallot-${version}";
src = fetchFromGitHub {
owner = "katmagic";
@ -17,6 +15,21 @@ in stdenv.mkDerivation {
buildInputs = [ openssl ];
patches = [
(fetchpatch {
url = "https://github.com/katmagic/Shallot/commit/c913088dfaaaf249494514f20a62f2a17b5c6606.patch";
sha256 = "19l1ppbxpdb0736f7plhybj08wh6rqk1lr3bxsp8jpzpnkh114b2";
})
(fetchpatch {
url = "https://github.com/katmagic/Shallot/commit/cd6628d97b981325e700a38f408a43df426fd569.patch";
sha256 = "1gaffp5wp1l5p2qdk0ix3i5fhzpx4xphl0haa6ajhqn8db7hbr9y";
})
(fetchpatch {
url = "https://github.com/katmagic/Shallot/commit/5c7c1ccecbbad5a121c50ba7153cbbee7ee0ebf9.patch";
sha256 = "1zmll4iqz39zwk8vj40n1dpvyq3403l64p2127gsjgh2l2v91s4k";
})
];
installPhase = ''
mkdir -p $out/bin
cp ./shallot $out/bin/