blob: 70cac84286250287a8e9c8acb347968369993aa9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
{ self, lib, python3, stdenvNoCC, pkgs }:
stdenvNoCC.mkDerivation rec {
pname = "waybar-systemd-units";
src = ./waybar-systemd.py;
version = "0.1.0";
buildInputs = [ (pkgs.python310.withPackages (ps: with ps; [ click ])) ];
propagatedBuildInputs =
[ (pkgs.python310.withPackages (ps: with ps; [ click ])) ];
dontUnpack = true;
dontBuild = true;
installPhase = ''
mkdir -p $out/bin
cp $src $out/bin/${pname}
'';
meta = with lib; {
description = "Get a list of systemd units that have failed.";
license = with licenses; [ mit ];
platforms = platforms.unix;
maintainers = with maintainers; [ fcuny ];
};
}
|