mirror of
https://github.com/SebastianStork/advent-of-code.git
synced 2026-01-21 12:11: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
1
.envrc
Normal file
1
.envrc
Normal file
|
|
@ -0,0 +1 @@
|
|||
use flake
|
||||
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -3,3 +3,4 @@
|
|||
.idea/
|
||||
.direnv/
|
||||
**/target
|
||||
inputs
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
L68
|
||||
L30
|
||||
R48
|
||||
L5
|
||||
R60
|
||||
L55
|
||||
L1
|
||||
L99
|
||||
R14
|
||||
L82
|
||||
18
flake.lock
generated
18
flake.lock
generated
|
|
@ -1,5 +1,22 @@
|
|||
{
|
||||
"nodes": {
|
||||
"inputs": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1764611941,
|
||||
"narHash": "sha256-GEVJK9tSeNnGgYYRbjtYE/su75nxRvOm8h0Sf5GD70A=",
|
||||
"ref": "refs/heads/main",
|
||||
"rev": "5390449be22f56739e0840e35e46d54b1166886c",
|
||||
"shallow": true,
|
||||
"type": "git",
|
||||
"url": "ssh://git@github.com/SebastianStork/advent-of-code-inputs.git"
|
||||
},
|
||||
"original": {
|
||||
"shallow": true,
|
||||
"type": "git",
|
||||
"url": "ssh://git@github.com/SebastianStork/advent-of-code-inputs.git"
|
||||
}
|
||||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1764522689,
|
||||
|
|
@ -18,6 +35,7 @@
|
|||
},
|
||||
"root": {
|
||||
"inputs": {
|
||||
"inputs": "inputs",
|
||||
"nixpkgs": "nixpkgs",
|
||||
"rust-overlay": "rust-overlay"
|
||||
}
|
||||
|
|
|
|||
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