10 stdenv.mkDerivation rec {
15 url = "https://git.suckless.org/sinit/";
16 sha256 = "sha256-VtXkgixgElKKOT26uKN9feXDVjjtSgTWvcgk5o5MLmw=";
20 (lib.getOutput "static" stdenv.cc.libc)
22 makeFlags = [ "PREFIX=$(out)" ];
25 + (lib.optionalString (
27 ) ''sed -re 's@(rcinitcmd[^"]*")[^"]*"@\1${rcinit}"@' -i config.def.h; '')
28 + (lib.optionalString (
30 ) ''sed -re 's@(rc(reboot|poweroff)cmd[^"]*")[^"]*"@\1${rcshutdown}"@' -i config.def.h; '')
31 + (lib.optionalString (
33 ) ''sed -re 's@(rc(reboot)cmd[^"]*")[^"]*"@\1${rcreboot}"@' -i config.def.h; '');
36 description = "Very minimal Linux init implementation from suckless.org";
37 mainProgram = "sinit";
38 license = licenses.mit;
39 maintainers = with maintainers; [ raskin ];
40 platforms = platforms.linux;
41 homepage = "https://tools.suckless.org/sinit";
42 downloadPage = "https://git.suckless.org/sinit";