mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 16:15:05 +00:00
ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
46 lines
983 B
Nix
46 lines
983 B
Nix
{ 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";
|
|
mainProgram = "beefi";
|
|
license = licenses.gpl3;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ tu-maurice ];
|
|
homepage = "https://github.com/jfeick/beefi";
|
|
};
|
|
}
|