6 stdenv.mkDerivation rec {
10 src = fetchFromGitHub {
12 repo = "intellij-community";
13 rev = "0f6d9ccb67b8fcad0d802cd76209d503c4ed66a6";
14 hash = "sha256-3TAiVvKi50JQRrVG6J7LUJKTiuOTDyKt4DhoA1QmbrM=";
15 sparseCheckout = [ "native/fsNotifier/linux" ];
18 # fix for hard-links in nix-store, https://github.com/JetBrains/intellij-community/pull/2171
19 patches = [ ./fsnotifier.patch ];
21 sourceRoot = "${src.name}/native/fsNotifier/linux";
26 $CC -O2 -Wall -Wextra -Wpedantic -D "VERSION=\"${version}\"" -std=c11 main.c inotify.c util.c -o fsnotifier
28 cp fsnotifier $out/bin/fsnotifier
32 homepage = "https://github.com/JetBrains/intellij-community/tree/master/native/fsNotifier/linux";
33 description = "IntelliJ Platform companion program for watching and reporting file and directory structure modification";
34 license = lib.licenses.asl20;
35 mainProgram = "fsnotifier";
36 maintainers = with lib.maintainers; [ shyim ];
37 platforms = lib.platforms.linux;