1 { lib, stdenv, fetchFromGitHub, makeWrapper, parallel, sqlite, bc, file }:
3 stdenv.mkDerivation rec {
5 pname = "profile-cleaner";
7 src = fetchFromGitHub {
9 repo = "profile-cleaner";
11 sha256 = "11sjf4j9dr6ih9jkg6vqq6gkfg6wly4182bi1008bsm1zdmm5iz7";
14 nativeBuildInputs = [ makeWrapper ];
17 PREFIX=\"\" DESTDIR=$out make install
18 wrapProgram $out/bin/profile-cleaner \
19 --prefix PATH : "${lib.makeBinPath [ parallel sqlite bc file ]}"
23 description = "Reduces browser profile sizes by cleaning their sqlite databases";
25 Use profile-cleaner to reduce the size of browser profiles by organizing
26 their sqlite databases using sqlite3's vacuum and reindex functions. The
27 term "browser" is used loosely since profile-cleaner happily works on
28 some email clients and newsreaders too.
30 homepage = "https://github.com/graysky2/profile-cleaner";
31 license = lib.licenses.mit;
32 platforms = lib.platforms.all;
33 maintainers = [ lib.maintainers.devhell ];