nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 fetchFromGitHub,
3 lib,
4 stdenv,
5}:
6
7stdenv.mkDerivation (finalAttrs: {
8 pname = "plasma-applet-commandoutput";
9 version = "13";
10
11 src = fetchFromGitHub {
12 owner = "Zren";
13 repo = "plasma-applet-commandoutput";
14 tag = "v${finalAttrs.version}";
15 hash = "sha256-Tjnm26EYKXtBM9JBHKI73AMvOW/rQ3qOw2JDYey7EfQ=";
16 };
17
18 dontConfigure = true;
19 dontBuild = true;
20
21 installPhase = ''
22 runHook preInstall
23
24 mkdir -p $out/share/plasma/plasmoids
25 cp -r package $out/share/plasma/plasmoids/com.github.zren.commandoutput
26
27 runHook postInstall
28 '';
29
30 meta = {
31 changelog = "https://github.com/Zren/plasma-applet-commandoutput/blob/${finalAttrs.src.rev}/Changelog.md";
32 description = "Run a command periodically and render its output";
33 homepage = "https://github.com/Zren/plasma-applet-commandoutput";
34 license = lib.licenses.gpl2Plus;
35 maintainers = with lib.maintainers; [
36 matthiasbeyer
37 oliver-ni
38 ];
39 };
40})