「🎉」 init: Init cpp 04
This commit is contained in:
19
.direnv/bin/nix-direnv-reload
Executable file
19
.direnv/bin/nix-direnv-reload
Executable file
@ -0,0 +1,19 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
set -e
|
||||||
|
if [[ ! -d "/nfs/homes/adjoly/Documents/CPP/CPP_Module_04" ]]; then
|
||||||
|
echo "Cannot find source directory; Did you move it?"
|
||||||
|
echo "(Looking for "/nfs/homes/adjoly/Documents/CPP/CPP_Module_04")"
|
||||||
|
echo 'Cannot force reload with this script - use "direnv reload" manually and then try again'
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# rebuild the cache forcefully
|
||||||
|
_nix_direnv_force_reload=1 direnv exec "/nfs/homes/adjoly/Documents/CPP/CPP_Module_04" true
|
||||||
|
|
||||||
|
# Update the mtime for .envrc.
|
||||||
|
# This will cause direnv to reload again - but without re-building.
|
||||||
|
touch "/nfs/homes/adjoly/Documents/CPP/CPP_Module_04/.envrc"
|
||||||
|
|
||||||
|
# Also update the timestamp of whatever profile_rc we have.
|
||||||
|
# This makes sure that we know we are up to date.
|
||||||
|
touch -r "/nfs/homes/adjoly/Documents/CPP/CPP_Module_04/.envrc" "/nfs/homes/adjoly/Documents/CPP/CPP_Module_04/.direnv"/*.rc
|
1
.direnv/flake-inputs/20cgsn80c8jq4lwial6ry4spgwhzk8fv-source
Symbolic link
1
.direnv/flake-inputs/20cgsn80c8jq4lwial6ry4spgwhzk8fv-source
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
/nix/store/20cgsn80c8jq4lwial6ry4spgwhzk8fv-source
|
1
.direnv/flake-inputs/4wjygyks9w9z3548738hpfjnaqvwxmcw-source
Symbolic link
1
.direnv/flake-inputs/4wjygyks9w9z3548738hpfjnaqvwxmcw-source
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
/nix/store/4wjygyks9w9z3548738hpfjnaqvwxmcw-source
|
1
.direnv/flake-inputs/j4v8f1c9pqwpnnlgh14w9f72yjwjcbd5-source
Symbolic link
1
.direnv/flake-inputs/j4v8f1c9pqwpnnlgh14w9f72yjwjcbd5-source
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
/nix/store/j4v8f1c9pqwpnnlgh14w9f72yjwjcbd5-source
|
1
.direnv/flake-inputs/p4h8czwwz81kw03cynm8j8skmh42sjs1-source
Symbolic link
1
.direnv/flake-inputs/p4h8czwwz81kw03cynm8j8skmh42sjs1-source
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
/nix/store/p4h8czwwz81kw03cynm8j8skmh42sjs1-source
|
1
.direnv/flake-inputs/znm62pbi80q6iy3rv9q34fij0mz4ncnb-source
Symbolic link
1
.direnv/flake-inputs/znm62pbi80q6iy3rv9q34fij0mz4ncnb-source
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
/nix/store/znm62pbi80q6iy3rv9q34fij0mz4ncnb-source
|
1
.direnv/flake-profile-a5d5b61aa8a61b7d9d765e1daf971a9a578f1cfa
Symbolic link
1
.direnv/flake-profile-a5d5b61aa8a61b7d9d765e1daf971a9a578f1cfa
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
/nix/store/3kwpdn820cw9bkklakna9rgpgmzhnx9i-nix-shell-env
|
2043
.direnv/flake-profile-a5d5b61aa8a61b7d9d765e1daf971a9a578f1cfa.rc
Normal file
2043
.direnv/flake-profile-a5d5b61aa8a61b7d9d765e1daf971a9a578f1cfa.rc
Normal file
File diff suppressed because it is too large
Load Diff
79
flake.lock
generated
Normal file
79
flake.lock
generated
Normal file
@ -0,0 +1,79 @@
|
|||||||
|
{
|
||||||
|
"nodes": {
|
||||||
|
"flake-parts": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs-lib": "nixpkgs-lib"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1722555600,
|
||||||
|
"narHash": "sha256-XOQkdLafnb/p9ij77byFQjDf5m5QYl9b2REiVClC+x4=",
|
||||||
|
"owner": "hercules-ci",
|
||||||
|
"repo": "flake-parts",
|
||||||
|
"rev": "8471fe90ad337a8074e957b69ca4d0089218391d",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "hercules-ci",
|
||||||
|
"repo": "flake-parts",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nixpkgs": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1732758367,
|
||||||
|
"narHash": "sha256-RzaI1RO0UXqLjydtz3GAXSTzHkpb/lLD1JD8a0W4Wpo=",
|
||||||
|
"owner": "nixos",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "fa42b5a5f401aab8a32bd33c9a4de0738180dc59",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nixos",
|
||||||
|
"ref": "nixos-unstable",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nixpkgs-lib": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1722555339,
|
||||||
|
"narHash": "sha256-uFf2QeW7eAHlYXuDktm9c25OxOyCoUOQmh5SZ9amE5Q=",
|
||||||
|
"type": "tarball",
|
||||||
|
"url": "https://github.com/NixOS/nixpkgs/archive/a5d394176e64ab29c852d03346c1fc9b0b7d33eb.tar.gz"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"type": "tarball",
|
||||||
|
"url": "https://github.com/NixOS/nixpkgs/archive/a5d394176e64ab29c852d03346c1fc9b0b7d33eb.tar.gz"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"pogit": {
|
||||||
|
"inputs": {
|
||||||
|
"flake-parts": "flake-parts",
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1730655101,
|
||||||
|
"narHash": "sha256-gQiaaNAXSgQc2va1zqxrRA6X0Lr5kAtOO8HH3A5I20E=",
|
||||||
|
"owner": "y-syo",
|
||||||
|
"repo": "pogit",
|
||||||
|
"rev": "9de63350cf2e8297c9038f17cb5c2365bdf5cfa5",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "y-syo",
|
||||||
|
"repo": "pogit",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"root": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": "nixpkgs",
|
||||||
|
"pogit": "pogit"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"root": "root",
|
||||||
|
"version": 7
|
||||||
|
}
|
39
flake.nix
Normal file
39
flake.nix
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
{
|
||||||
|
inputs = {
|
||||||
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||||
|
pogit = {
|
||||||
|
url = "github:y-syo/pogit";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
outputs = inputs@{ nixpkgs, ... }:
|
||||||
|
let
|
||||||
|
supportedSystems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];
|
||||||
|
forEachSupportedSystem = f: nixpkgs.lib.genAttrs supportedSystems (system: f {
|
||||||
|
pkgs = import nixpkgs { inherit system; };
|
||||||
|
});
|
||||||
|
in {
|
||||||
|
devShells = forEachSupportedSystem ({ pkgs }: {
|
||||||
|
default = pkgs.mkShell.override
|
||||||
|
{}
|
||||||
|
{
|
||||||
|
buildInputs = with pkgs;[
|
||||||
|
|
||||||
|
];
|
||||||
|
hardeningDisable = [ "all" ];
|
||||||
|
packages = with pkgs; [
|
||||||
|
gcc11
|
||||||
|
clang_12
|
||||||
|
norminette
|
||||||
|
valgrind
|
||||||
|
git
|
||||||
|
gdb
|
||||||
|
inputs.pogit.packages.${pkgs.system}.default
|
||||||
|
python312Packages.compiledb
|
||||||
|
];
|
||||||
|
};
|
||||||
|
});
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
Reference in New Issue
Block a user