From 450e5e842a83b7d062091c400c62caa945610bb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Asger=20Juul=20Brunsh=C3=B8j?= Date: Tue, 10 Jun 2025 19:44:17 +0200 Subject: [PATCH] init --- .envrc | 1 + .gitignore | 1 + flake.lock | 70 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ flake.nix | 29 ++++++++++++++++++++++ justfile | 14 +++++++++++ 5 files changed, 115 insertions(+) create mode 100644 .envrc create mode 100644 .gitignore create mode 100644 flake.lock create mode 100644 flake.nix create mode 100644 justfile diff --git a/.envrc b/.envrc new file mode 100644 index 0000000..3550a30 --- /dev/null +++ b/.envrc @@ -0,0 +1 @@ +use flake diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..29963da --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/.direnv/ diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..e156eb6 --- /dev/null +++ b/flake.lock @@ -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 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..edf751b --- /dev/null +++ b/flake.nix @@ -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 + ])) + ]; + }; + }; +} diff --git a/justfile b/justfile new file mode 100644 index 0000000..3e77ba7 --- /dev/null +++ b/justfile @@ -0,0 +1,14 @@ +_default: + @just --unsorted --list + +# Check project +check: + bc-check + +# Format project +fmt: + bc-fmt + +# Perform automated fixes +fix: + bc-fix