2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, makeWrapper, mono, openssl_1_0_2, ocl-icd }:
|
2018-04-14 17:55:39 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "2.1";
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "scallion";
|
2018-04-14 17:55:39 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "lachesis";
|
|
|
|
repo = "scallion";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1l9aj101xpsaaa6kmmhmq68m6z8gzli1iaaf8xaxbivq0i7vka9k";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
buildInputs = [ mono ];
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
xbuild scallion.sln
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/share
|
|
|
|
cp scallion/bin/Debug/* $out/share/
|
|
|
|
makeWrapper ${mono}/bin/mono $out/bin/scallion \
|
2021-01-15 09:19:50 +00:00
|
|
|
--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ openssl_1_0_2 ocl-icd ]} \
|
2018-04-14 17:55:39 +01:00
|
|
|
--add-flags $out/share/scallion.exe
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-04-14 17:55:39 +01:00
|
|
|
description = "GPU-based tor hidden service name generator";
|
|
|
|
homepage = src.meta.homepage;
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
maintainers = with maintainers; [ volth ];
|
|
|
|
};
|
|
|
|
}
|