···65 '';
66 };
6768+ name = lib.mkOption {
69+ type = lib.types.str;
70+ description = ''
71+ The name of this systemd unit, including its extension.
72+ This can be used to refer to this unit from other systemd units.
73+ '';
74+ };
75+76 overrideStrategy = mkOption {
77 default = "asDropinIfExists";
78 type = types.enum [ "asDropinIfExists" "asDropin" ];
···246247 passwordFile = mkOption {
248 type = types.path;
249- description = "A file containing the initial password for the admin user.";
00250 example = "/run/keys/mediawiki-password";
251 };
252
···246247 passwordFile = mkOption {
248 type = types.path;
249+ description = ''
250+ A file containing the initial password for the administrator account "admin".
251+ '';
252 example = "/run/keys/mediawiki-password";
253 };
254
+11-12
nixos/modules/system/boot/systemd.nix
···595 };
596597 systemd.units =
598- mapAttrs' (n: v: nameValuePair "${n}.path" (pathToUnit n v)) cfg.paths
599- // mapAttrs' (n: v: nameValuePair "${n}.service" (serviceToUnit n v)) cfg.services
600- // mapAttrs' (n: v: nameValuePair "${n}.slice" (sliceToUnit n v)) cfg.slices
601- // mapAttrs' (n: v: nameValuePair "${n}.socket" (socketToUnit n v)) cfg.sockets
602- // mapAttrs' (n: v: nameValuePair "${n}.target" (targetToUnit n v)) cfg.targets
603- // mapAttrs' (n: v: nameValuePair "${n}.timer" (timerToUnit n v)) cfg.timers
604- // listToAttrs (map
605- (v: let n = escapeSystemdPath v.where;
606- in nameValuePair "${n}.mount" (mountToUnit n v)) cfg.mounts)
607- // listToAttrs (map
608- (v: let n = escapeSystemdPath v.where;
609- in nameValuePair "${n}.automount" (automountToUnit n v)) cfg.automounts);
610611 # Environment of PID 1
612 systemd.managerEnvironment = {
···1-{ stdenv, lib, fetchFromGitHub, cmake, pkg-config
2-, mpg123, ffmpeg, libvorbis, libao, jansson, speex
3, nix-update-script
04}:
56stdenv.mkDerivation rec {
···19 extraArgs = [ "--version-regex" "r(.*)" ];
20 };
2122- nativeBuildInputs = [ cmake pkg-config ];
0002324- buildInputs = [ mpg123 ffmpeg libvorbis libao jansson speex ];
0000000000002526 cmakeFlags = [
27- # There's no nice way to build the audacious plugin without a circular dependency
28- "-DBUILD_AUDACIOUS=OFF"
29 # It always tries to download it, no option to use the system one
30 "-DUSE_CELT=OFF"
31- ];
3233 meta = with lib; {
34 description = "A library for playback of various streamed audio formats used in video games";
···1+{ stdenv, lib, fetchFromGitHub, cmake, pkg-config, gtk3
2+, audacious, mpg123, ffmpeg, libvorbis, libao, jansson, speex
3, nix-update-script
4+, buildAudaciousPlugin ? false # only build cli by default, pkgs.audacious-plugins sets this to enable plugin support
5}:
67stdenv.mkDerivation rec {
···20 extraArgs = [ "--version-regex" "r(.*)" ];
21 };
2223+ nativeBuildInputs = [
24+ cmake
25+ pkg-config
26+ ] ++ lib.optional buildAudaciousPlugin gtk3;
2728+ buildInputs = [
29+ mpg123
30+ ffmpeg
31+ libvorbis
32+ libao
33+ jansson
34+ speex
35+ ] ++ lib.optional buildAudaciousPlugin (audacious.override { audacious-plugins = null; });
36+37+ preConfigure = ''
38+ substituteInPlace cmake/dependencies/audacious.cmake \
39+ --replace "pkg_get_variable(AUDACIOUS_PLUGIN_DIR audacious plugin_dir)" "set(AUDACIOUS_PLUGIN_DIR \"$out/lib/audacious\")"
40+ '';
4142 cmakeFlags = [
0043 # It always tries to download it, no option to use the system one
44 "-DUSE_CELT=OFF"
45+ ] ++ lib.optional (! buildAudaciousPlugin) "-DBUILD_AUDACIOUS=OFF";
4647 meta = with lib; {
48 description = "A library for playback of various streamed audio formats used in video games";
···910buildGoModule rec {
11 pname = "grype";
12- version = "0.76.0";
1314 src = fetchFromGitHub {
15 owner = "anchore";
16 repo = "grype";
17 rev = "refs/tags/v${version}";
18- hash = "sha256-FdxtJVLeH7UQBYjoOuimCoswvIkz/2sBJ4Kn5NGBDWY=";
19 # populate values that require us to use git. By doing this in postFetch we
20 # can delete .git afterwards and maintain better reproducibility of the src.
21 leaveDotGit = true;
···910buildGoModule rec {
11 pname = "grype";
12+ version = "0.77.0";
1314 src = fetchFromGitHub {
15 owner = "anchore";
16 repo = "grype";
17 rev = "refs/tags/v${version}";
18+ hash = "sha256-EnAMAmoP8rbkOkdPPxkN14lOPVYPqVpmaekfXBboeyI=";
19 # populate values that require us to use git. By doing this in postFetch we
20 # can delete .git afterwards and maintain better reproducibility of the src.
21 leaveDotGit = true;