All my system configs and packages in one repo
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

packages: init tlsfragment

+53
+53
packages/tlsfragment/package.nix
··· 1 + { 2 + python3, 3 + fetchFromGitHub, 4 + }: 5 + let 6 + ahocorasick-python = python3.pkgs.buildPythonPackage { 7 + pname = "ahocorasick-python"; 8 + version = "0.0.9"; 9 + pyproject = true; 10 + 11 + src = fetchFromGitHub { 12 + owner = "xizhicode"; 13 + repo = "ahocorasick-python"; 14 + # Release was not tagged 15 + rev = "d6b3609f06fe46e6387ff1d072164f6a08b2eaac"; 16 + hash = "sha256-JqKzp1FN80XngqjpcECK5SXJ1u+FUA0Pl0NHsa6dBJI="; 17 + }; 18 + 19 + build-system = [ python3.pkgs.setuptools ]; 20 + pythonImportChecks = [ "ahocorasick" ]; 21 + }; 22 + in 23 + python3.pkgs.buildPythonApplication rec { 24 + pname = "tlsfragment"; 25 + version = "3.3.0"; 26 + pyproject = true; 27 + 28 + src = fetchFromGitHub { 29 + owner = "maoist2009"; 30 + repo = "TlsFragment"; 31 + tag = "V${version}"; 32 + hash = "sha256-Sby8amOYN3visAjIcYT0RPvwT6XuBkiIbym2BOsekLg="; 33 + }; 34 + 35 + build-system = [ python3.pkgs.poetry-core ]; 36 + 37 + dependencies = with python3.pkgs; [ 38 + ahocorasick-python 39 + requests 40 + dnspython 41 + ]; 42 + 43 + postPatch = '' 44 + sed -iE "s@^basepath = .*@basepath = Path('$out/share/tlsfragment')@" src/tls_fragment/config.py 45 + sed -iE "s@config_pac.json@$out/share/tlsfragment/config_pac.json@" src/tls_fragment/pac.py 46 + ''; 47 + 48 + postInstall = '' 49 + install -Dm644 config.json config_pac.json -t $out/share/tlsfragment 50 + ''; 51 + 52 + pythonImportChecks = [ "tlsfragment" ]; 53 + }