This commit is contained in:
Asger Juul Brunshøj 2025-06-10 19:44:17 +02:00
commit 450e5e842a
5 changed files with 115 additions and 0 deletions

1
.envrc Normal file
View File

@ -0,0 +1 @@
use flake

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/.direnv/

70
flake.lock generated Normal file
View File

@ -0,0 +1,70 @@
{
"nodes": {
"basecamp": {
"inputs": {
"nixpkgs": [
"nixpkgs"
],
"rust-overlay": "rust-overlay"
},
"locked": {
"lastModified": 1748329278,
"narHash": "sha256-ubv8i2hN5QrwrmzJBRvRxfZ9SI2emneUYc82zrAYqWs=",
"owner": "plul",
"repo": "basecamp",
"rev": "361f87e1c50660540e97c3f7d7eac98a48321f3f",
"type": "github"
},
"original": {
"owner": "plul",
"repo": "basecamp",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1749523198,
"narHash": "sha256-How2kQw0psKmCdXgojc95Sf3K5maHB3qfINxTZFCAPM=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "cdc68935eba9f86d155585fdf6f17af6824f38ac",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"basecamp": "basecamp",
"nixpkgs": "nixpkgs"
}
},
"rust-overlay": {
"inputs": {
"nixpkgs": [
"basecamp",
"nixpkgs"
]
},
"locked": {
"lastModified": 1745029910,
"narHash": "sha256-9CtbfTTQWMoOkXejxc5D+K3z/39wkQQt2YfYJW50tnI=",
"owner": "oxalica",
"repo": "rust-overlay",
"rev": "50fefac8cdfd1587ac6d8678f6181e7d348201d2",
"type": "github"
},
"original": {
"owner": "oxalica",
"repo": "rust-overlay",
"type": "github"
}
}
},
"root": "root",
"version": 7
}

29
flake.nix Normal file
View File

@ -0,0 +1,29 @@
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
basecamp.url = "github:plul/basecamp";
basecamp.inputs.nixpkgs.follows = "nixpkgs";
};
outputs =
{ basecamp, nixpkgs, ... }:
{
devShells."x86_64-linux".default =
let
pkgs = import nixpkgs {
system = "x86_64-linux";
config.allowUnfree = true;
};
in
basecamp.mkShell pkgs {
packages = [
(pkgs.python3.withPackages (_python-pkgs: [
# python-pkgs.drawsvg
# python-pkgs.ruff
# python-pkgs.jedi-language-server
]))
];
};
};
}

14
justfile Normal file
View File

@ -0,0 +1,14 @@
_default:
@just --unsorted --list
# Check project
check:
bc-check
# Format project
fmt:
bc-fmt
# Perform automated fixes
fix:
bc-fix