6 , gobject-introspection
21 assert withGui -> !stdenv.isDarwin;
24 stdenv.mkDerivation rec {
28 src = fetchFromGitHub {
32 sha256 = "15xfkcw1bkfyf3z8kl23k3rlv702m0h7ghqxvhniynvlwbgh6j2x";
39 ] ++ lib.optionals withGui [
49 ] ++ lib.optionals withGui [
56 python3.pkgs.pygobject3
60 export CFLAGS="$NIX_CFLAGS_COMPILE"
61 export LDFLAGS="''${NIX_LDFLAGS//-rpath /-Wl,-rpath=}"
63 # remove sources of nondeterminism
64 substituteInPlace lib/cmdline.c \
65 --replace "__DATE__" "\"Jan 1 1970\"" \
66 --replace "__TIME__" "\"00:00:00\""
67 substituteInPlace docs/SConscript \
68 --replace "gzip -c " "gzip -cn "
71 prefixKey = "--prefix=";
73 sconsFlags = lib.optionals (!withGui) [ "--without-gui" ];
75 # in GUI mode, this shells out to itself, and tries to import python modules
76 postInstall = lib.optionalString withGui ''
77 gappsWrapperArgs+=(--prefix PATH : "$out/bin")
78 gappsWrapperArgs+=(--prefix PYTHONPATH : "$(toPythonPath $out):$(toPythonPath ${python3.pkgs.pygobject3}):$(toPythonPath ${python3.pkgs.pycairo})")
82 description = "Extremely fast tool to remove duplicates and other lint from your filesystem";
83 homepage = "https://rmlint.readthedocs.org";
84 platforms = platforms.unix;
85 license = licenses.gpl3;
86 maintainers = with maintainers; [ aaschmid koral ];