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
48
pkgs/applications/window-managers/vwm/default.nix
Normal file
48
pkgs/applications/window-managers/vwm/default.nix
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchurl
|
||||
, ncurses
|
||||
, pkg-config
|
||||
, glib
|
||||
, libviper
|
||||
, libpseudo
|
||||
, gpm
|
||||
, libvterm
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "vwm";
|
||||
version = "2.1.3";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/vwm/vwm-${version}.tar.gz";
|
||||
sha256 = "1r5wiqyfqwnyx7dfihixlnavbvg8rni36i4gq169aisjcg7laxaf";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
sed -i -e s@/usr/local@$out@ \
|
||||
-e s@/usr/lib@$out/lib@ \
|
||||
-e 's@tic vwmterm@tic -o '$out/lib/terminfo' vwmterm@' \
|
||||
-e /ldconfig/d Makefile modules/*/Makefile vwm.h
|
||||
|
||||
# Fix ncurses-6.3 support:
|
||||
substituteInPlace vwm_bkgd.c --replace \
|
||||
'mvwprintw(window,height-1,width-(strlen(version_str)),version_str);' \
|
||||
'mvwprintw(window,height-1,width-(strlen(version_str)),"%s", version_str);'
|
||||
'';
|
||||
|
||||
preInstall = ''
|
||||
mkdir -p $out/bin $out/include
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
buildInputs = [ ncurses glib libviper libpseudo gpm libvterm ];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "http://vwm.sourceforge.net/";
|
||||
description = "Dynamic window manager for the console";
|
||||
license = licenses.gpl2Plus;
|
||||
maintainers = with maintainers; [ ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue