summaryrefslogtreecommitdiffstats
path: root/pkgs/os-specific/linux/beefi
diff options
context:
space:
mode:
authortu-maurice <valentin.gehrke@zom.bi>2021-01-14 19:13:04 +0100
committerMadMaurice <madmaurice@zom.bi>2021-01-14 20:35:00 +0100
commit85ec1ece131ffb0697edd7a4e2d12ea2565c46e4 (patch)
treec1b216728e0ce30f79ec951cc8f975cc1880c97b /pkgs/os-specific/linux/beefi
parent463c111d8fc366dd1518277d22a4b94dcc5a9662 (diff)
beefi: Init at 0.1.1
Diffstat (limited to 'pkgs/os-specific/linux/beefi')
-rw-r--r--pkgs/os-specific/linux/beefi/default.nix44
1 files changed, 44 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/beefi/default.nix b/pkgs/os-specific/linux/beefi/default.nix
new file mode 100644
index 000000000000..959a43faea91
--- /dev/null
+++ b/pkgs/os-specific/linux/beefi/default.nix
@@ -0,0 +1,44 @@
+{ stdenv
+, lib
+, fetchFromGitHub
+, installShellFiles
+, binutils-unwrapped
+, systemd }:
+
+stdenv.mkDerivation rec {
+ pname = "beefi";
+ version = "0.1.1";
+
+ src = fetchFromGitHub {
+ owner = "jfeick";
+ repo = "beefi";
+ rev = version;
+ sha256 = "1180avalbw414q1gnfqdgc9zg3k9y0401kw9qvcn51qph81d04v5";
+ };
+
+ nativeBuildInputs = [ installShellFiles ];
+
+ buildInputs = [
+ binutils-unwrapped
+ systemd
+ ];
+
+ patchPhase = ''
+ substituteInPlace beefi \
+ --replace objcopy ${binutils-unwrapped}/bin/objcopy \
+ --replace /usr/lib/systemd ${systemd}/lib/systemd
+ '';
+
+ installPhase = ''
+ install -Dm755 beefi $out/bin/beefi
+ installManPage beefi.1
+ '';
+
+ meta = with lib; {
+ description = "A small script to create bootable EFISTUB kernel images";
+ license = licenses.gpl3;
+ platforms = platforms.linux;
+ maintainers = with maintainers; [ tu-maurice ];
+ homepage = "https://github.com/jfeick/beefi";
+ };
+}