mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 09:53:10 +00:00
2641d97cbf
Reproduction script: # Bulk rewrite ./maintainers/scripts/sha-to-sri.py pkgs/by-name # Revert some packages which will need manual intervention for n in amdvlk azure-cli cargo-profiler corefonts flatito fluxcd gist perf_data_converter protoc-gen-js solana-cli swt verible; do git checkout -- "pkgs/by-name/${n:0:2}/${n}" done
40 lines
1.1 KiB
Nix
40 lines
1.1 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "2024.2.0";
|
|
pname = "fsnotifier";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "JetBrains";
|
|
repo = "intellij-community";
|
|
rev = "0f6d9ccb67b8fcad0d802cd76209d503c4ed66a6";
|
|
hash = "sha256-3TAiVvKi50JQRrVG6J7LUJKTiuOTDyKt4DhoA1QmbrM=";
|
|
sparseCheckout = [ "native/fsNotifier/linux" ];
|
|
};
|
|
|
|
# fix for hard-links in nix-store, https://github.com/JetBrains/intellij-community/pull/2171
|
|
patches = [ ./fsnotifier.patch ];
|
|
|
|
sourceRoot = "${src.name}/native/fsNotifier/linux";
|
|
|
|
buildPhase = ''
|
|
mkdir -p $out/bin
|
|
|
|
$CC -O2 -Wall -Wextra -Wpedantic -D "VERSION=\"${version}\"" -std=c11 main.c inotify.c util.c -o fsnotifier
|
|
|
|
cp fsnotifier $out/bin/fsnotifier
|
|
'';
|
|
|
|
meta = {
|
|
homepage = "https://github.com/JetBrains/intellij-community/tree/master/native/fsNotifier/linux";
|
|
description = "IntelliJ Platform companion program for watching and reporting file and directory structure modification";
|
|
license = lib.licenses.asl20;
|
|
mainProgram = "fsnotifier";
|
|
maintainers = with lib.maintainers; [ shyim ];
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
}
|