From 27fe769fcc82d05e42dfbb965cd627c076ddfc11 Mon Sep 17 00:00:00 2001 From: Samuel Dionne-Riel Date: Fri, 10 Jan 2020 00:46:02 -0500 Subject: [PATCH] hardshutdown: init at 0.0.1 --- overlay/hardshutdown/default.nix | 22 ++++++++++++++++++++++ overlay/overlay.nix | 1 + 2 files changed, 23 insertions(+) create mode 100644 overlay/hardshutdown/default.nix diff --git a/overlay/hardshutdown/default.nix b/overlay/hardshutdown/default.nix new file mode 100644 index 00000000..c145e696 --- /dev/null +++ b/overlay/hardshutdown/default.nix @@ -0,0 +1,22 @@ +{ stdenv, fetchFromGitHub }: + +stdenv.mkDerivation { + pname = "hardshutdown"; + version = "0.0.1"; + + src = fetchFromGitHub { + owner = "mobile-nixos"; + repo = "hardshutdown"; + rev = "6beb4b77b273bbd045870ecd8de8630b5007451b"; + sha256 = "0vxflpfx8dr5rzr9y6hm0zv7jxcc3sgisqvkyicwzg8mvl2vfshi"; + }; + + makeFlags = [ + "PREFIX=${placeholder "out"}" + ]; + + meta = with stdenv.lib; { + description = "Single-call binary handling shutdown/reboot syscalls"; + license = licenses.gpl2; + }; +} diff --git a/overlay/overlay.nix b/overlay/overlay.nix index eca8324a..c8c7c2fc 100644 --- a/overlay/overlay.nix +++ b/overlay/overlay.nix @@ -57,6 +57,7 @@ in # make_ext4fs = callPackage ./make_ext4fs {}; + hardshutdown = callPackage ./hardshutdown {}; # # Hacks