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
33
nixos/modules/programs/vim.nix
Normal file
33
nixos/modules/programs/vim.nix
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.programs.vim;
|
||||
in {
|
||||
options.programs.vim = {
|
||||
defaultEditor = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = ''
|
||||
When enabled, installs vim and configures vim to be the default editor
|
||||
using the EDITOR environment variable.
|
||||
'';
|
||||
};
|
||||
|
||||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.vim;
|
||||
defaultText = literalExpression "pkgs.vim";
|
||||
example = literalExpression "pkgs.vimHugeX";
|
||||
description = ''
|
||||
vim package to use.
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf cfg.defaultEditor {
|
||||
environment.systemPackages = [ cfg.package ];
|
||||
environment.variables = { EDITOR = mkOverride 900 "vim"; };
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue