mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 03:23:29 +03:00
dwm-status: 1.9.0 -> 1.10.0; nixos/dwm-status: run with --quiet (#411463)
This commit is contained in:
commit
b4d22dbdf6
2 changed files with 16 additions and 10 deletions
|
@ -69,7 +69,7 @@ in
|
||||||
wantedBy = [ "graphical-session.target" ];
|
wantedBy = [ "graphical-session.target" ];
|
||||||
partOf = [ "graphical-session.target" ];
|
partOf = [ "graphical-session.target" ];
|
||||||
|
|
||||||
serviceConfig.ExecStart = "${cfg.package}/bin/dwm-status ${configFile}";
|
serviceConfig.ExecStart = "${cfg.package}/bin/dwm-status ${configFile} --quiet";
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
|
@ -15,6 +15,7 @@
|
||||||
dnsutils,
|
dnsutils,
|
||||||
iproute2,
|
iproute2,
|
||||||
wirelesstools,
|
wirelesstools,
|
||||||
|
nix-update-script,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
|
@ -32,13 +33,13 @@ in
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = "dwm-status";
|
pname = "dwm-status";
|
||||||
version = "1.9.0";
|
version = "1.10.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "Gerschtli";
|
owner = "Gerschtli";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = version;
|
tag = version;
|
||||||
sha256 = "sha256-OFwI4evwbXLO4ufjrh5SZia79bwbAKVoSm/IPCDku68=";
|
hash = "sha256-982JFYZroskKppAOZjBWOFt624FfRjhXpYN57s/cM50=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
|
@ -53,19 +54,24 @@ rustPlatform.buildRustPackage rec {
|
||||||
];
|
];
|
||||||
|
|
||||||
useFetchCargoVendor = true;
|
useFetchCargoVendor = true;
|
||||||
cargoHash = "sha256-G31p8iVRUODD4hUssXaOqEOUTW+C+GZMy/L/tgumDtA=";
|
cargoHash = "sha256-2/zzE6JzhqeBYLiRkx5ELaW150rk1bMTrpxSw/wxNes=";
|
||||||
|
|
||||||
postInstall = lib.optionalString (bins != [ ]) ''
|
postInstall = lib.optionalString (bins != [ ]) ''
|
||||||
wrapProgram $out/bin/dwm-status --prefix "PATH" : "${lib.makeBinPath bins}"
|
wrapProgram $out/bin/dwm-status --prefix "PATH" : "${lib.makeBinPath bins}"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
passthru.updateScript = nix-update-script { };
|
||||||
|
|
||||||
|
meta = {
|
||||||
description = "Highly performant and configurable DWM status service";
|
description = "Highly performant and configurable DWM status service";
|
||||||
homepage = "https://github.com/Gerschtli/dwm-status";
|
homepage = "https://github.com/Gerschtli/dwm-status";
|
||||||
changelog = "https://github.com/Gerschtli/dwm-status/blob/master/CHANGELOG.md";
|
changelog = "https://github.com/Gerschtli/dwm-status/blob/${src.rev}/CHANGELOG.md";
|
||||||
license = with licenses; [ mit ];
|
license = lib.licenses.mit;
|
||||||
maintainers = with maintainers; [ gerschtli ];
|
maintainers = with lib.maintainers; [
|
||||||
|
gepbird
|
||||||
|
gerschtli
|
||||||
|
];
|
||||||
mainProgram = "dwm-status";
|
mainProgram = "dwm-status";
|
||||||
platforms = platforms.linux;
|
platforms = lib.platforms.linux;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue