6 , gobject-introspection
20 assert withGui -> !stdenv.hostPlatform.isDarwin;
22 stdenv.mkDerivation rec {
26 src = fetchFromGitHub {
30 sha256 = "sha256-pOo1YfeqHUU6xyBRFbcj2lX1MHJ+a5Hi31BMC1nYZGo=";
34 # pass through NIX_* environment variables to scons.
42 ] ++ lib.optionals withGui [
52 ] ++ lib.optionals withGui [
58 python3.pkgs.pygobject3
59 ] ++ lib.optionals (lib.meta.availableOn stdenv.hostPlatform elfutils) [
64 # remove sources of nondeterminism
65 substituteInPlace lib/cmdline.c \
66 --replace "__DATE__" "\"Jan 1 1970\"" \
67 --replace "__TIME__" "\"00:00:00\""
68 substituteInPlace docs/SConscript \
69 --replace "gzip -c " "gzip -cn "
72 # Otherwise tries to access /usr.
73 prefixKey = "--prefix=";
75 sconsFlags = lib.optionals (!withGui) [ "--without-gui" ];
77 # in GUI mode, this shells out to itself, and tries to import python modules
78 postInstall = lib.optionalString withGui ''
79 gappsWrapperArgs+=(--prefix PATH : "$out/bin")
80 gappsWrapperArgs+=(--prefix PYTHONPATH : "$(toPythonPath $out):$(toPythonPath ${python3.pkgs.pygobject3}):$(toPythonPath ${python3.pkgs.pycairo})")
84 description = "Extremely fast tool to remove duplicates and other lint from your filesystem";
85 homepage = "https://rmlint.readthedocs.org";
86 platforms = platforms.unix;
87 license = licenses.gpl3;
88 maintainers = with maintainers; [ aaschmid koral ];
89 mainProgram = "rmlint";