uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
55
pkgs/applications/window-managers/i3/blocks-gaps.nix
Normal file
55
pkgs/applications/window-managers/i3/blocks-gaps.nix
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
{ fetchFromGitHub, lib, stdenv, perl, makeWrapper
|
||||
, iproute2, acpi, sysstat, alsa-utils
|
||||
, scripts ? [ "bandwidth" "battery" "cpu_usage" "disk" "iface"
|
||||
"load_average" "memory" "volume" "wifi" ]
|
||||
}:
|
||||
|
||||
with lib;
|
||||
|
||||
let
|
||||
perlscripts = [ "battery" "cpu_usage" "openvpn" "temperature" ];
|
||||
contains_any = l1: l2: 0 < length( intersectLists l1 l2 );
|
||||
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "i3blocks-gaps";
|
||||
version = "1.4";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Airblader";
|
||||
repo = "i3blocks-gaps";
|
||||
rev = "4cfdf93c75f729a2c96d471004d31734e923812f";
|
||||
sha256 = "0v9307ij8xzwdaxay3r75sd2cp453s3qb6q7dy9fks2p6wwqpazi";
|
||||
};
|
||||
|
||||
makeFlags = [ "all" ];
|
||||
installFlags = [ "PREFIX=\${out}" "VERSION=${version}" ];
|
||||
|
||||
buildInputs = optional (contains_any scripts perlscripts) perl;
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
|
||||
postFixup = optionalString (elem "bandwidth" scripts) ''
|
||||
wrapProgram $out/libexec/i3blocks/bandwidth \
|
||||
--prefix PATH : ${makeBinPath [ iproute2 ]}
|
||||
'' + optionalString (elem "battery" scripts) ''
|
||||
wrapProgram $out/libexec/i3blocks/battery \
|
||||
--prefix PATH : ${makeBinPath [ acpi ]}
|
||||
'' + optionalString (elem "cpu_usage" scripts) ''
|
||||
wrapProgram $out/libexec/i3blocks/cpu_usage \
|
||||
--prefix PATH : ${makeBinPath [ sysstat ]}
|
||||
'' + optionalString (elem "iface" scripts) ''
|
||||
wrapProgram $out/libexec/i3blocks/iface \
|
||||
--prefix PATH : ${makeBinPath [ iproute2 ]}
|
||||
'' + optionalString (elem "volume" scripts) ''
|
||||
wrapProgram $out/libexec/i3blocks/volume \
|
||||
--prefix PATH : ${makeBinPath [ alsa-utils ]}
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A flexible scheduler for your i3bar blocks -- this is a fork to use with i3-gaps";
|
||||
homepage = "https://github.com/Airblader/i3blocks-gaps";
|
||||
license = licenses.gpl3;
|
||||
maintainers = with maintainers; [ carlsverre ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue