9 pname = "syscall_limiter";
10 version = "2017-01-23";
12 src = fetchFromGitHub {
14 repo = "syscall_limiter";
15 rev = "481c8c883f2e1260ebc83b352b63bf61a930a341";
16 sha256 = "0z5arj1kq1xczgrbw1b8m9kicbv3vs9bd32wvgfr4r6ndingsp5m";
19 buildInputs = [ libseccomp ];
23 cp -v limit_syscalls $out/bin
24 cp -v monitor.sh $out/bin/limit_syscalls_monitor.sh
25 substituteInPlace $out/bin/limit_syscalls_monitor.sh \
26 --replace perl ${perl}/bin/perl \
27 --replace which ${which}/bin/which
31 description = "Start Linux programs with only selected syscalls enabled";
32 homepage = "https://github.com/vi/syscall_limiter";
33 license = licenses.mit;
34 maintainers = with maintainers; [ obadz ];
35 platforms = platforms.linux;