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/development/python-modules/powerline/default.nix
Normal file
55
pkgs/development/python-modules/powerline/default.nix
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
{ lib
|
||||
, fetchFromGitHub
|
||||
, buildPythonPackage
|
||||
, socat
|
||||
, psutil
|
||||
, hglib
|
||||
, pygit2
|
||||
, pyuv
|
||||
, i3ipc
|
||||
, stdenv
|
||||
}:
|
||||
|
||||
# TODO: bzr support is missing because nixpkgs switched to `breezy`
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "2.8.2";
|
||||
pname = "powerline";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = pname;
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "sha256-6V8ozl5KJQvytfflBmKJlIZQ5m3hkpCzMBtWZ2SzcQ0=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
socat
|
||||
psutil
|
||||
hglib
|
||||
pygit2
|
||||
pyuv
|
||||
] ++ lib.optionals (!stdenv.isDarwin) [ i3ipc ];
|
||||
|
||||
# tests are travis-specific
|
||||
doCheck = false;
|
||||
|
||||
postInstall = ''
|
||||
install -dm755 "$out/share/fonts/OTF/"
|
||||
install -dm755 "$out/etc/fonts/conf.d"
|
||||
install -m644 "font/PowerlineSymbols.otf" "$out/share/fonts/OTF/PowerlineSymbols.otf"
|
||||
install -m644 "font/10-powerline-symbols.conf" "$out/etc/fonts/conf.d/10-powerline-symbols.conf"
|
||||
|
||||
install -dm755 "$out/share/fish/vendor_functions.d"
|
||||
install -m644 "powerline/bindings/fish/powerline-setup.fish" "$out/share/fish/vendor_functions.d/powerline-setup.fish"
|
||||
|
||||
cp -ra powerline/bindings/{bash,shell,tcsh,tmux,vim,zsh} $out/share/
|
||||
rm $out/share/*/*.py
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = "https://github.com/powerline/powerline";
|
||||
description = "The ultimate statusline/prompt utility";
|
||||
license = lib.licenses.mit;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue