2021-01-15 10:19:50 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, fetchpatch
|
2019-08-21 17:13:09 +02:00
|
|
|
, openssl
|
2017-08-29 23:43:50 +02:00
|
|
|
}:
|
|
|
|
|
2019-08-21 17:13:09 +02:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "shallot";
|
2017-08-29 23:43:50 +02:00
|
|
|
version = "0.0.3";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "katmagic";
|
|
|
|
repo = "Shallot";
|
|
|
|
rev = "shallot-${version}";
|
|
|
|
sha256 = "0cjafdxvjkwb9vyifhh11mw0la7yfqswqwqmrfp1fy9jl7m0il9k";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ openssl ];
|
|
|
|
|
2019-08-21 17:13:09 +02:00
|
|
|
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";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2017-08-29 23:43:50 +02:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp ./shallot $out/bin/
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2020-10-26 05:08:40 +01:00
|
|
|
description = "Allows you to create customized .onion addresses for your hidden service";
|
2017-08-29 23:43:50 +02:00
|
|
|
|
2021-01-15 10:19:50 +01:00
|
|
|
license = lib.licenses.mit;
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/katmagic/Shallot";
|
2021-01-15 10:19:50 +01:00
|
|
|
platforms = lib.platforms.linux;
|
2017-08-29 23:43:50 +02:00
|
|
|
};
|
|
|
|
}
|