sinit: migrate to by-name, modernize derivation (#511793)

This commit is contained in:
Weijia Wang
2026-05-01 12:20:56 +00:00
committed by GitHub
2 changed files with 6 additions and 11 deletions
@@ -2,19 +2,19 @@
lib,
stdenv,
fetchgit,
rcinit ? null,
rcshutdown ? null,
rcinit ? "/etc/rc.d/rc.init",
rcshutdown ? "/etc/rc.d/rc.shutdown",
rcreboot ? null,
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "sinit";
version = "1.1";
src = fetchgit {
url = "https://git.suckless.org/sinit/";
sha256 = "sha256-VtXkgixgElKKOT26uKN9feXDVjjtSgTWvcgk5o5MLmw=";
tag = "v${version}";
hash = "sha256-VtXkgixgElKKOT26uKN9feXDVjjtSgTWvcgk5o5MLmw=";
tag = "v${finalAttrs.version}";
};
buildInputs = [
(lib.getOutput "static" stdenv.cc.libc)
@@ -41,4 +41,4 @@ stdenv.mkDerivation rec {
homepage = "https://tools.suckless.org/sinit";
downloadPage = "https://git.suckless.org/sinit";
};
}
})
-5
View File
@@ -8608,11 +8608,6 @@ with pkgs;
protobuf = protobuf_33;
};
sinit = callPackage ../os-specific/linux/sinit {
rcinit = "/etc/rc.d/rc.init";
rcshutdown = "/etc/rc.d/rc.shutdown";
};
sysdig = callPackage ../os-specific/linux/sysdig {
kernel = null;
}; # sysdig is a client, for a driver look at linuxPackagesFor