pkgs/os-specific: stdenv.lib -> lib
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{stdenv, fetchgit, rcinit ? null, rcshutdown ? null, rcreboot ? null}:
|
||||
{lib, stdenv, fetchgit, rcinit ? null, rcshutdown ? null, rcreboot ? null}:
|
||||
let
|
||||
s = # Generated upstream information
|
||||
rec {
|
||||
@@ -10,7 +10,7 @@ let
|
||||
rev = "refs/tags/v${version}";
|
||||
};
|
||||
buildInputs = [
|
||||
(stdenv.lib.getOutput "static" stdenv.cc.libc)
|
||||
(lib.getOutput "static" stdenv.cc.libc)
|
||||
];
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
@@ -21,16 +21,16 @@ stdenv.mkDerivation {
|
||||
};
|
||||
makeFlags = ["PREFIX=$(out)"];
|
||||
preConfigure = ""
|
||||
+ (stdenv.lib.optionalString (rcinit != null) ''sed -re 's@(rcinitcmd[^"]*")[^"]*"@\1${rcinit}"@' -i config.def.h; '')
|
||||
+ (stdenv.lib.optionalString (rcshutdown != null) ''sed -re 's@(rc(reboot|poweroff)cmd[^"]*")[^"]*"@\1${rcshutdown}"@' -i config.def.h; '')
|
||||
+ (stdenv.lib.optionalString (rcreboot != null) ''sed -re 's@(rc(reboot)cmd[^"]*")[^"]*"@\1${rcreboot}"@' -i config.def.h; '')
|
||||
+ (lib.optionalString (rcinit != null) ''sed -re 's@(rcinitcmd[^"]*")[^"]*"@\1${rcinit}"@' -i config.def.h; '')
|
||||
+ (lib.optionalString (rcshutdown != null) ''sed -re 's@(rc(reboot|poweroff)cmd[^"]*")[^"]*"@\1${rcshutdown}"@' -i config.def.h; '')
|
||||
+ (lib.optionalString (rcreboot != null) ''sed -re 's@(rc(reboot)cmd[^"]*")[^"]*"@\1${rcreboot}"@' -i config.def.h; '')
|
||||
;
|
||||
meta = {
|
||||
inherit (s) version;
|
||||
description = "A very minimal Linux init implementation from suckless.org";
|
||||
license = stdenv.lib.licenses.mit ;
|
||||
maintainers = [stdenv.lib.maintainers.raskin];
|
||||
platforms = stdenv.lib.platforms.linux;
|
||||
license = lib.licenses.mit ;
|
||||
maintainers = [lib.maintainers.raskin];
|
||||
platforms = lib.platforms.linux;
|
||||
homepage = "https://tools.suckless.org/sinit";
|
||||
downloadPage = "https://git.suckless.org/sinit";
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user