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
65
pkgs/applications/networking/browsers/lagrange/default.nix
Normal file
65
pkgs/applications/networking/browsers/lagrange/default.nix
Normal file
|
|
@ -0,0 +1,65 @@
|
|||
{ stdenv
|
||||
, lib
|
||||
, fetchFromGitHub
|
||||
, nix-update-script
|
||||
, cmake
|
||||
, pkg-config
|
||||
, fribidi
|
||||
, harfbuzz
|
||||
, libwebp
|
||||
, mpg123
|
||||
, SDL2
|
||||
, the-foundation
|
||||
, AppKit
|
||||
, zip
|
||||
, enableTUI ? false, ncurses, sealcurses
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "lagrange";
|
||||
version = "1.13.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "skyjake";
|
||||
repo = "lagrange";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-5EIXbdVBFkmftD8xK1VJmZH3Ul99fhFSpFLOQNqSXoU=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake pkg-config zip ];
|
||||
|
||||
buildInputs = [ the-foundation ]
|
||||
++ lib.optionals (!enableTUI) [ fribidi harfbuzz libwebp mpg123 SDL2 ]
|
||||
++ lib.optionals enableTUI [ ncurses sealcurses ]
|
||||
++ lib.optional stdenv.isDarwin AppKit;
|
||||
|
||||
cmakeFlags = lib.optionals enableTUI [
|
||||
"-DENABLE_TUI=YES"
|
||||
"-DENABLE_MPG123=NO"
|
||||
"-DENABLE_WEBP=NO"
|
||||
"-DENABLE_FRIBIDI=NO"
|
||||
"-DENABLE_HARFBUZZ=NO"
|
||||
"-DENABLE_POPUP_MENUS=NO"
|
||||
"-DENABLE_IDLE_SLEEP=NO"
|
||||
"-DCMAKE_INSTALL_DATADIR=${placeholder "out"}/share"
|
||||
];
|
||||
|
||||
installPhase = lib.optionalString (stdenv.isDarwin && !enableTUI) ''
|
||||
mkdir -p $out/Applications
|
||||
mv Lagrange.app $out/Applications
|
||||
'';
|
||||
|
||||
passthru = {
|
||||
updateScript = nix-update-script {
|
||||
attrPath = pname;
|
||||
};
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "A Beautiful Gemini Client";
|
||||
homepage = "https://gmi.skyjake.fi/lagrange/";
|
||||
license = licenses.bsd2;
|
||||
maintainers = with maintainers; [ sikmir ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue