1
0
Fork 0
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:
Domen Kožar 2022-09-26 00:06:28 +02:00 committed by GitHub
commit 95ba7e548d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 31 additions and 26 deletions

View file

@ -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;

View file

@ -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

View file

@ -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

View file

@ -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 = { };
}

View file

@ -31,7 +31,7 @@ in
config = {
system.build.etc = pkgs.runCommandNoCC "etc"
system.build.etc = pkgs.runCommand "etc"
{ preferLocalBuild = true; }
''
mkdir -p $out/etc

View file

@ -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

View file

@ -42,7 +42,7 @@ in
config = {
system.build.patches = pkgs.runCommandNoCC "patches"
system.build.patches = pkgs.runCommand "patches"
{ preferLocalBuild = true; }
''
mkdir -p $out/patches