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
43
pkgs/applications/misc/nixnote2/default.nix
Normal file
43
pkgs/applications/misc/nixnote2/default.nix
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
{ lib, mkDerivation, fetchFromGitHub, boost
|
||||
, qtbase, qtwebkit, poppler, qmake, hunspell, html-tidy}:
|
||||
|
||||
mkDerivation rec {
|
||||
pname = "nixnote2";
|
||||
version = "2.0.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "baumgarr";
|
||||
repo = "nixnote2";
|
||||
rev = "v${version}";
|
||||
sha256 = "0cfq95mxvcgby66r61gclm1a2c6zck5aln04xmg2q8kg6p9d31fr";
|
||||
};
|
||||
|
||||
buildInputs = [ boost qtbase qtwebkit poppler hunspell ];
|
||||
|
||||
nativeBuildInputs = [ qmake ];
|
||||
|
||||
postPatch = ''
|
||||
# Fix location of poppler-qt5.h
|
||||
for f in threads/indexrunner.cpp html/noteformatter.cpp utilities/noteindexer.cpp gui/plugins/popplerviewer.h gui/plugins/pluginfactory.h gui/plugins/popplerviewer.cpp ; do
|
||||
substituteInPlace $f \
|
||||
--replace '#include <poppler-qt5.h>' '#include <poppler/qt5/poppler-qt5.h>'
|
||||
done
|
||||
|
||||
substituteInPlace help/about.html --replace '__VERSION__' '${version}'
|
||||
|
||||
substituteInPlace nixnote.cpp --replace 'tidyProcess.start("tidy' 'tidyProcess.start("${html-tidy}/bin/tidy'
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
cp images/windowIcon.png $out/share/pixmaps/nixnote2.png
|
||||
cp theme.ini $out/share/nixnote2/theme.ini
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "An unofficial client of Evernote";
|
||||
homepage = "http://www.nixnote.org/";
|
||||
license = licenses.gpl2Plus;
|
||||
maintainers = with maintainers; [ htr ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue