dracut: init at 059

authored by Lily Foster and committed by Emery Hemingway f46ee73b 7c1096ab

+130
+128
pkgs/os-specific/linux/dracut/default.nix
···
··· 1 + { stdenv 2 + , lib 3 + , fetchFromGitHub 4 + , gitUpdater 5 + , makeBinaryWrapper 6 + , pkg-config 7 + , asciidoc 8 + , libxslt 9 + , docbook_xsl 10 + , bash 11 + , kmod 12 + , binutils 13 + , busybox 14 + , bzip2 15 + , coreutils 16 + , cpio 17 + , findutils 18 + , glibc 19 + , gnugrep 20 + , gnused 21 + , gnutar 22 + , gzip 23 + , kbd 24 + , lvm2 25 + , lz4 26 + , lzop 27 + , procps 28 + , rng-tools 29 + , squashfsTools 30 + , systemd 31 + , util-linux 32 + , xz 33 + , zstd 34 + }: 35 + 36 + stdenv.mkDerivation rec { 37 + pname = "dracut"; 38 + version = "059"; 39 + 40 + src = fetchFromGitHub { 41 + owner = "dracutdevs"; 42 + repo = "dracut"; 43 + rev = version; 44 + hash = "sha256-zSyC2SnSQkmS/mDpBXG2DtVVanRRI9COKQJqYZZCPJM="; 45 + }; 46 + 47 + strictDeps = true; 48 + 49 + buildInputs = [ 50 + bash 51 + kmod 52 + ]; 53 + 54 + nativeBuildInputs = [ 55 + makeBinaryWrapper 56 + pkg-config 57 + asciidoc 58 + libxslt 59 + docbook_xsl 60 + ]; 61 + 62 + postPatch = '' 63 + substituteInPlace dracut.sh \ 64 + --replace 'dracutbasedir="$dracutsysrootdir"/usr/lib/dracut' 'dracutbasedir="$dracutsysrootdir"'"$out/lib/dracut" 65 + substituteInPlace lsinitrd.sh \ 66 + --replace 'dracutbasedir=/usr/lib/dracut' "dracutbasedir=$out/lib/dracut" 67 + 68 + echo 'DRACUT_VERSION=${version}' >dracut-version.sh 69 + ''; 70 + 71 + preConfigure = '' 72 + patchShebangs ./configure 73 + ''; 74 + 75 + postFixup = '' 76 + wrapProgram $out/bin/dracut --prefix PATH : ${lib.makeBinPath [ 77 + coreutils 78 + util-linux 79 + ]} --prefix DRACUT_PATH : ${lib.makeBinPath [ 80 + bash 81 + binutils 82 + coreutils 83 + findutils 84 + glibc 85 + gnugrep 86 + gnused 87 + gnutar 88 + kbd 89 + lvm2 90 + procps 91 + rng-tools 92 + squashfsTools 93 + systemd 94 + util-linux 95 + busybox 96 + ]} 97 + wrapProgram $out/bin/dracut-catimages --set PATH ${lib.makeBinPath [ 98 + coreutils 99 + cpio 100 + findutils 101 + gzip 102 + ]} 103 + wrapProgram $out/bin/lsinitrd --set PATH ${lib.makeBinPath [ 104 + binutils 105 + bzip2 106 + coreutils 107 + cpio 108 + gnused 109 + gzip 110 + lz4 111 + lzop 112 + squashfsTools 113 + util-linux 114 + xz 115 + zstd 116 + ]} 117 + ''; 118 + 119 + passthru.updateScript = gitUpdater { }; 120 + 121 + meta = with lib; { 122 + homepage = "https://dracut.wiki.kernel.org"; 123 + description = "An event driven initramfs infrastructure"; 124 + license = licenses.gpl2Plus; 125 + maintainers = with maintainers; [ lilyinstarlight ]; 126 + platforms = platforms.linux; 127 + }; 128 + }
+2
pkgs/top-level/all-packages.nix
··· 28530 28531 dr14_tmeter = callPackage ../applications/audio/dr14_tmeter { }; 28532 28533 dragonflydb = callPackage ../servers/nosql/dragonflydb { }; 28534 28535 dragonfly-reverb = callPackage ../applications/audio/dragonfly-reverb { };
··· 28530 28531 dr14_tmeter = callPackage ../applications/audio/dr14_tmeter { }; 28532 28533 + dracut = callPackage ../os-specific/linux/dracut { }; 28534 + 28535 dragonflydb = callPackage ../servers/nosql/dragonflydb { }; 28536 28537 dragonfly-reverb = callPackage ../applications/audio/dragonfly-reverb { };