mirror of
https://github.com/SebastianStork/advent-of-code.git
synced 2026-01-21 13:21:34 +01:00
Symlink inputs from private repo using stow
This commit is contained in:
parent
99554bc83b
commit
5d4fa37355
5 changed files with 42 additions and 15 deletions
27
flake.nix
27
flake.nix
|
|
@ -6,25 +6,42 @@
|
|||
url = "github:oxalica/rust-overlay";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
inputs = {
|
||||
url = "git+ssh://git@github.com/SebastianStork/advent-of-code-inputs.git?shallow=1";
|
||||
flake = false;
|
||||
};
|
||||
};
|
||||
|
||||
outputs =
|
||||
{ nixpkgs, rust-overlay, ... }:
|
||||
{
|
||||
nixpkgs,
|
||||
rust-overlay,
|
||||
inputs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
system = "x86_64-linux";
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
in
|
||||
{
|
||||
devShells.${system} = {
|
||||
default = pkgs.mkShellNoCC {
|
||||
packages = [ pkgs.stow ];
|
||||
shellHook = ''
|
||||
stow --dir=${inputs} --target=./. package
|
||||
'';
|
||||
};
|
||||
|
||||
cpp = pkgs.mkShell.override { stdenv = pkgs.clangStdenv; } {
|
||||
packages = with pkgs; [
|
||||
gdb
|
||||
clang-tools
|
||||
packages = [
|
||||
pkgs.gdb
|
||||
pkgs.clang-tools
|
||||
];
|
||||
};
|
||||
|
||||
go = pkgs.mkShellNoCC {
|
||||
packages = with pkgs; [ go ];
|
||||
packages = [ pkgs.go ];
|
||||
};
|
||||
|
||||
rust =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue