Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 40 lines 930 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 python3, 6}: 7 8stdenv.mkDerivation rec { 9 pname = "chrome-export"; 10 version = "2.0.2"; 11 12 src = fetchFromGitHub { 13 owner = "bdesham"; 14 repo = "chrome-export"; 15 rev = "v${version}"; 16 sha256 = "0p1914wfjggjavw7a0dh2nb7z97z3wrkwrpwxkdc2pj5w5lv405m"; 17 }; 18 19 buildInputs = [ python3 ]; 20 21 dontBuild = true; 22 installPhase = '' 23 mkdir -p $out/bin 24 cp export-chrome-bookmarks export-chrome-history $out/bin 25 mkdir -p $out/share/man/man1 26 cp man_pages/*.1 $out/share/man/man1 27 ''; 28 doInstallCheck = true; 29 installCheckPhase = '' 30 bash test/run_tests $out/bin 31 ''; 32 33 meta = with lib; { 34 description = "Scripts to save Google Chrome's bookmarks and history as HTML bookmarks files"; 35 homepage = "https://github.com/bdesham/chrome-export"; 36 license = [ licenses.isc ]; 37 maintainers = [ maintainers.bdesham ]; 38 platforms = python3.meta.platforms; 39 }; 40}