Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at netboot-syslinux-multiplatform 48 lines 1.5 kB view raw
1{ lib, stdenv, fetchFromGitLab, dtc, installShellFiles }: 2 3stdenv.mkDerivation rec { 4 pname = "argononed"; 5 version = "unstable-2022-03-26"; 6 7 src = fetchFromGitLab { 8 owner = "DarkElvenAngel"; 9 repo = pname; 10 rev = "97c4fa07fc2c09ffc3bd86e0f6319d50fa639578"; 11 sha256 = "sha256-5/xUYbprRiwD+FN8V2cUpHxnTbBkEsFG2wfsEXrCrgQ="; 12 }; 13 14 patches = [ ./fix-hardcoded-reboot-poweroff-paths.patch ]; 15 16 postPatch = '' 17 patchShebangs configure 18 ''; 19 20 nativeBuildInputs = [ installShellFiles ]; 21 22 buildInputs = [ dtc ]; 23 24 installPhase = '' 25 runHook preInstall 26 27 install -Dm755 build/argononed $out/bin/argononed 28 install -Dm755 build/argonone-cli $out/bin/argonone-cli 29 install -Dm755 build/argonone-shutdown $out/lib/systemd/system-shutdown/argonone-shutdown 30 install -Dm644 build/argonone.dtbo $out/boot/overlays/argonone.dtbo 31 32 install -Dm644 OS/_common/argononed.service $out/lib/systemd/system/argononed.service 33 install -Dm644 OS/_common/argononed.logrotate $out/etc/logrotate.d/argononed 34 install -Dm644 LICENSE $out/share/argononed/LICENSE 35 36 installShellCompletion --bash --name argonone-cli OS/_common/argonone-cli-complete.bash 37 38 runHook postInstall 39 ''; 40 41 meta = with lib; { 42 homepage = "https://gitlab.com/DarkElvenAngel/argononed"; 43 description = "A replacement daemon for the Argon One Raspberry Pi case"; 44 license = licenses.mit; 45 platforms = platforms.linux; 46 maintainers = [ maintainers.misterio77 ]; 47 }; 48}