at 23.11-beta 44 lines 956 B view raw
1{ stdenv 2, lib 3, fetchFromGitHub 4, installShellFiles 5, binutils-unwrapped 6, systemd }: 7 8stdenv.mkDerivation rec { 9 pname = "beefi"; 10 version = "0.1.1"; 11 12 src = fetchFromGitHub { 13 owner = "jfeick"; 14 repo = "beefi"; 15 rev = version; 16 sha256 = "1180avalbw414q1gnfqdgc9zg3k9y0401kw9qvcn51qph81d04v5"; 17 }; 18 19 nativeBuildInputs = [ installShellFiles ]; 20 21 buildInputs = [ 22 binutils-unwrapped 23 systemd 24 ]; 25 26 patchPhase = '' 27 substituteInPlace beefi \ 28 --replace objcopy ${binutils-unwrapped}/bin/objcopy \ 29 --replace /usr/lib/systemd ${systemd}/lib/systemd 30 ''; 31 32 installPhase = '' 33 install -Dm755 beefi $out/bin/beefi 34 installManPage beefi.1 35 ''; 36 37 meta = with lib; { 38 description = "A small script to create bootable EFISTUB kernel images"; 39 license = licenses.gpl3; 40 platforms = platforms.linux; 41 maintainers = with maintainers; [ tu-maurice ]; 42 homepage = "https://github.com/jfeick/beefi"; 43 }; 44}