blob: 086fba1578f063a964739ec9e7ceb826afc51065 (
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
|
{ lib, 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 ];
};
}
|