Unverified Commit 7fa77193 authored by Weijia Wang's avatar Weijia Wang Committed by GitHub
Browse files

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

parents 6ba2db63 a5c83014
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -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";
  };
}
})
+0 −5
Original line number Diff line number Diff line
@@ -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