mirror of
https://github.com/Smaug123/nix-dotfiles
synced 2025-10-07 15:38:41 +00:00
Revert some GMP stuff
This commit is contained in:
@@ -1,8 +0,0 @@
|
||||
{
|
||||
packageOverrides = pkgs: {
|
||||
gmp = pkgs.gmp.override { postInstall = ''
|
||||
ln -s /usr/local/opt/gmp/lib/libgmp.10.dylib $out/lib/libgmp.10.dylib
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
@@ -1,9 +1,13 @@
|
||||
{ config, lib, ... }:
|
||||
|
||||
let pkgs = import <nixpkgs> { config = import ./config.nix; }; in
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let python = import ./python.nix { inherit pkgs; }; in
|
||||
|
||||
let gmp =
|
||||
#if pkgs.stdenv.isDarwin then
|
||||
import ./gmp.nix { inherit pkgs; }
|
||||
#else pkgs.gmp
|
||||
; in
|
||||
|
||||
{
|
||||
|
||||
nix.useDaemon = true;
|
||||
@@ -22,8 +26,7 @@ let python = import ./python.nix { inherit pkgs; }; in
|
||||
pkgs.rustc
|
||||
pkgs.cargo
|
||||
pkgs.clang
|
||||
pkgs.gmp
|
||||
pkgs.darwin.apple_sdk.frameworks.Foundation
|
||||
gmp
|
||||
python
|
||||
#pkgs.keepassxc
|
||||
];
|
||||
|
14
gmp.nix
Normal file
14
gmp.nix
Normal file
@@ -0,0 +1,14 @@
|
||||
{ pkgs ? import <nixpkgs> {} }:
|
||||
|
||||
# If this fails, `chmod -R a+rw /usr/local/opt/gmp/lib`
|
||||
pkgs.stdenv.mkDerivation {
|
||||
name = "gmp-symlink";
|
||||
builder = "${pkgs.bash}/bin/bash";
|
||||
args = ["-c" "${pkgs.coreutils}/bin/mkdir -p $out && ${pkgs.coreutils}/bin/touch $out/gmp-symlink"];
|
||||
system = "x86_64-darwin";
|
||||
postInstall =
|
||||
''
|
||||
${pkgs.coreutils}/bin/echo "hi!"
|
||||
${pkgs.coreutils}/bin/ln -s ${pkgs.gmp}/lib/libgmp.10.dylib /usr/local/opt/gmp/lib/libgmp.10.dylib
|
||||
'';
|
||||
}
|
3
home.nix
3
home.nix
@@ -35,6 +35,7 @@
|
||||
pkgs.handbrake
|
||||
pkgs.ripgrep
|
||||
pkgs.elan
|
||||
pkgs.coreutils-prefixed
|
||||
];
|
||||
|
||||
programs.vscode = {
|
||||
@@ -111,7 +112,7 @@ let g:syntastic_always_populate_loc_list = 1
|
||||
let g:syntastic_auto_loc_list = 1
|
||||
let g:syntastic_check_on_open = 1
|
||||
let g:syntastic_check_on_wq = 0''; }
|
||||
|
||||
|
||||
YouCompleteMe
|
||||
tagbar
|
||||
];
|
||||
|
Reference in New Issue
Block a user