1 { lib, stdenv, fetchFromGitLab, fetchurl, autoconf-archive, autoreconfHook, pkg-config, python3 }:
3 chromium_version = "90.0.4417.1";
6 url = "https://raw.github.com/chromium/chromium/${chromium_version}/net/http/transport_security_state_static.json";
7 sha256 = "09f24n30x5dmqk8zk7k2glcilgr27832a3304wj1yp97158sqsfx";
11 stdenv.mkDerivation rec {
15 src = fetchFromGitLab {
18 rev = "libhsts-${version}";
19 sha256 = "0gbchzf0f4xzb6zjc56dk74hqrmdgyirmgxvvsqp9vqn9wb5kkx4";
24 cp ${hsts_list} transport_security_state_static.json
25 sed 's/^ *\/\/.*$//g' transport_security_state_static.json >hsts.json
27 patchShebangs src/hsts-make-dafsa
30 nativeBuildInputs = [ autoconf-archive autoreconfHook pkg-config python3 ];
32 outputs = [ "out" "dev" ];
35 description = "Library to easily check a domain against the Chromium HSTS Preload list";
36 homepage = "https://gitlab.com/rockdaboot/libhsts";
37 license = with licenses; [ mit bsd3 ];
38 maintainers = with maintainers; [ SuperSandro2000 ];