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