-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Hampus Linander
committed
Jan 1, 2024
1 parent
5c8c86b
commit 921a82d
Showing
2 changed files
with
260 additions
and
132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
{ | ||
# inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; | ||
# inputs.nixpkgs.url = "github:NixOS/nixpkgs/02f05fc"; | ||
inputs.helix-pkg.url = "github:helix-editor/helix"; | ||
# inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-22.11"; | ||
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11"; | ||
inputs.fenix = { | ||
url = "github:nix-community/fenix"; | ||
inputs.nixpkgs.follows = "nixpkgs"; | ||
}; | ||
outputs = { self, nixpkgs, helix-pkg, fenix, ... }: | ||
# outputs = { self, nixpkgs, ... }: | ||
let | ||
system = ""; | ||
pkgs = (import nixpkgs { | ||
inherit system; | ||
config = { | ||
allowUnfree = true; | ||
}; | ||
}); | ||
rustToolchain = fenix.packages."${system}".stable; | ||
helixmaster = helix-pkg.packages.${system}.default; | ||
|
||
devinputs = with pkgs; [ | ||
(rustToolchain.withComponents [ | ||
"cargo" | ||
"rustc" | ||
"rust-src" | ||
"rustfmt" | ||
"clippy" | ||
]) | ||
fenix.packages."${system}".rust-analyzer | ||
nil | ||
postgresql | ||
helixmaster | ||
nixfmt | ||
jq | ||
yazi | ||
nerdfonts | ||
(ueberzugpp.override { | ||
enableWayland = false; | ||
enableOpencv = false; | ||
}) | ||
]; | ||
in { | ||
packages.aarch64-darwin.default = program; | ||
# devShells.x86_64-linux.default = pkgs.mkShellNoCC { | ||
#devShells.aarch64-darwin.default = | ||
# (pkgs.mkShell.override { stdenv = pkgs.llvmPackages_14.stdenv; }) { | ||
# buildInputs = devinputs; | ||
# shellHook = '' | ||
# export POSTGRES=${pkgs.postgresql} | ||
# export EDITOR=hx | ||
# ''; | ||
# }; | ||
devShells.aarch64-darwin.default = | ||
pkgs.mkShellNoCC { buildInputs = devinputs; }; | ||
|
||
|
||
}; | ||
} |
Oops, something went wrong.