mirror of
https://github.com/LnL7/nix-darwin.git
synced 2025-03-05 16:27:03 +00:00
Merge pull request #536 from DeterminateSystems/runcommand
Fix nix-darwin with recent nixpkgs
This commit is contained in:
commit
95ba7e548d
7 changed files with 31 additions and 26 deletions
|
@ -10,7 +10,7 @@
|
|||
outputs = { self, darwin, nixpkgs }:
|
||||
let
|
||||
configuration = { pkgs, ... }: {
|
||||
nix.package = pkgs.nixFlakes;
|
||||
nix.package = pkgs.nixVersions.stable;
|
||||
|
||||
# FIXME: for github actions, this shouldn't be in the example.
|
||||
services.nix-daemon.enable = true;
|
||||
|
|
|
@ -34,7 +34,8 @@
|
|||
system.keyboard.remapCapsLockToControl = true;
|
||||
|
||||
environment.systemPackages =
|
||||
[ config.programs.vim.package
|
||||
[
|
||||
config.programs.vim.package
|
||||
|
||||
pkgs.awscli
|
||||
pkgs.brotli
|
||||
|
@ -146,8 +147,13 @@
|
|||
programs.vim.package = pkgs.neovim.override {
|
||||
configure = {
|
||||
packages.darwin.start = with pkgs.vimPlugins; [
|
||||
vim-sensible vim-surround ReplaceWithRegister
|
||||
polyglot fzfWrapper ale deoplete-nvim
|
||||
vim-sensible
|
||||
vim-surround
|
||||
ReplaceWithRegister
|
||||
polyglot
|
||||
fzfWrapper
|
||||
ale
|
||||
deoplete-nvim
|
||||
];
|
||||
|
||||
customRC = ''
|
||||
|
@ -302,7 +308,7 @@
|
|||
|
||||
nixpkgs.overlays = [
|
||||
(self: super: {
|
||||
darwin-zsh-completions = super.runCommandNoCC "darwin-zsh-completions-0.0.0"
|
||||
darwin-zsh-completions = super.runCommand "darwin-zsh-completions-0.0.0"
|
||||
{ preferLocalBuild = true; }
|
||||
''
|
||||
mkdir -p $out/share/zsh/site-functions
|
||||
|
|
|
@ -32,7 +32,7 @@ in
|
|||
|
||||
config = {
|
||||
|
||||
system.build.fonts = pkgs.runCommandNoCC "fonts"
|
||||
system.build.fonts = pkgs.runCommand "fonts"
|
||||
{ paths = cfg.fonts; preferLocalBuild = true; }
|
||||
''
|
||||
mkdir -p $out/Library/Fonts
|
||||
|
|
|
@ -12,7 +12,7 @@ let
|
|||
profile = mkOption {
|
||||
type = types.lines;
|
||||
internal = true;
|
||||
apply = text: pkgs.runCommandNoCC "sandbox.sb" {} ''
|
||||
apply = text: pkgs.runCommand "sandbox.sb" { } ''
|
||||
for f in $(< ${config.closure}/store-paths); do
|
||||
storePaths+="(subpath \"$f\")"
|
||||
done
|
||||
|
@ -137,6 +137,5 @@ in
|
|||
};
|
||||
};
|
||||
|
||||
config = {
|
||||
};
|
||||
config = { };
|
||||
}
|
||||
|
|
|
@ -31,7 +31,7 @@ in
|
|||
|
||||
config = {
|
||||
|
||||
system.build.etc = pkgs.runCommandNoCC "etc"
|
||||
system.build.etc = pkgs.runCommand "etc"
|
||||
{ preferLocalBuild = true; }
|
||||
''
|
||||
mkdir -p $out/etc
|
||||
|
|
|
@ -84,7 +84,7 @@ in
|
|||
|
||||
config = {
|
||||
|
||||
system.build.launchd = pkgs.runCommandNoCC "launchd"
|
||||
system.build.launchd = pkgs.runCommand "launchd"
|
||||
{ preferLocalBuild = true; }
|
||||
''
|
||||
mkdir -p $out/Library/LaunchAgents $out/Library/LaunchDaemons $out/user/Library/LaunchAgents
|
||||
|
|
|
@ -42,7 +42,7 @@ in
|
|||
|
||||
config = {
|
||||
|
||||
system.build.patches = pkgs.runCommandNoCC "patches"
|
||||
system.build.patches = pkgs.runCommand "patches"
|
||||
{ preferLocalBuild = true; }
|
||||
''
|
||||
mkdir -p $out/patches
|
||||
|
|
Loading…
Add table
Reference in a new issue