forked from mirrors/nixpkgs
eb11feaa0b
Changes the default fetcher in the Rust Platform to be the newer `fetchCargoTarball`, and changes every application using the current default to instead opt out. This commit does not change any hashes or cause any rebuilds. Once integrated, we will start deleting the opt-outs and recomputing hashes. See #79975 for details.
41 lines
1.3 KiB
Nix
41 lines
1.3 KiB
Nix
{ stdenv, lib, rustPlatform, fetchFromGitHub, dbus, gdk-pixbuf, libnotify, makeWrapper, pkgconfig, xorg
|
|
, enableAlsaUtils ? true, alsaUtils, coreutils
|
|
, enableNetwork ? true, dnsutils, iproute, wirelesstools }:
|
|
|
|
let
|
|
bins = lib.optionals enableAlsaUtils [ alsaUtils coreutils ]
|
|
++ lib.optionals enableNetwork [ dnsutils iproute wirelesstools ];
|
|
in
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "dwm-status";
|
|
version = "1.6.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Gerschtli";
|
|
repo = "dwm-status";
|
|
rev = version;
|
|
sha256 = "02sprsr7822ynkwpf3xdgmkdrgkw3vgijhlh65bayiv3b5lwb54n";
|
|
};
|
|
|
|
nativeBuildInputs = [ makeWrapper pkgconfig ];
|
|
buildInputs = [ dbus gdk-pixbuf libnotify xorg.libX11 ];
|
|
|
|
# Delete this on next update; see #79975 for details
|
|
legacyCargoFetcher = true;
|
|
|
|
cargoSha256 = "0l6x59bzzilc78gsi5rlgq9zjvp8qjphfsds776ljzmkbdq8q4iz";
|
|
|
|
postInstall = lib.optionalString (bins != []) ''
|
|
wrapProgram $out/bin/dwm-status --prefix "PATH" : "${stdenv.lib.makeBinPath bins}"
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Highly performant and configurable DWM status service";
|
|
homepage = https://github.com/Gerschtli/dwm-status;
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ gerschtli ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|