about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorGuillaume @layus Maudoux <layus.on@gmail.com>2022-06-23 13:08:23 +0000
committerGuillaume @layus Maudoux <layus.on@gmail.com>2022-06-23 13:08:23 +0000
commit83f0ce01044d04c47335295f49a9220c2e5698e5 (patch)
treedccfe05df1b4fdd2f6a8d92ff0333f338da1cef9 /pkgs
parent85b1871e4e8b82d04ddaf33d504d4c674cfc0dc0 (diff)
chkservice: init at 0.3
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/tools/admin/chkservice/default.nix37
-rw-r--r--pkgs/top-level/all-packages.nix4
2 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/tools/admin/chkservice/default.nix b/pkgs/tools/admin/chkservice/default.nix
new file mode 100644
index 0000000000000..949a65290d226
--- /dev/null
+++ b/pkgs/tools/admin/chkservice/default.nix
@@ -0,0 +1,37 @@
+{ stdenv, fetchFromGitHub, cmake, ninja, pkg-config, systemd, ncurses, lib }:
+
+stdenv.mkDerivation rec {
+  pname = "chkservice";
+  version = "0.3";
+
+  src = fetchFromGitHub {
+    owner = "linuxenko";
+    repo = "chkservice";
+    rev = version;
+    hash = "sha256:0dfvm62h6dwg18f17fn58nr09mfh6kylm8wy88j00fiy13l4wnb6";
+  };
+
+  # Tools needed during build time
+  nativeBuildInputs = [
+    cmake
+    # Makes the build faster, adds less than half a megabyte to the build
+    # dependencies
+    ninja
+    pkg-config
+  ];
+
+  buildInputs = [
+    systemd
+    ncurses
+  ];
+
+  hardeningDisable = [ "format" ];
+
+  meta = {
+    description = "chkservice is a tool for managing systemd units in terminal.";
+    platforms = lib.platforms.all;
+    maintainers = with lib.maintainers; [ infinisil ];
+    license = lib.licenses.gpl3Plus;
+    homepage = "https://github.com/linuxenko/chkservice";
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index f8a9c2b8b2c20..05a0c5104477e 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -207,6 +207,10 @@ with pkgs;
       }
     '');
 
+  chkservice = callPackage ../tools/admin/chkservice {
+    stdenv = gcc10StdenvCompat;
+  };
+
   addOpenGLRunpath = callPackage ../build-support/add-opengl-runpath { };
 
   quickemu = callPackage ../development/quickemu { };