From 635347a5c0f3ee3d43fa9a1e09fb94d8eaf2a7bb Mon Sep 17 00:00:00 2001 From: "Narazaki, Shuji" Date: Thu, 9 Jan 2025 01:50:06 +0900 Subject: [PATCH] Configure direnv on misc/ --- flake.nix | 1 - misc/.envrc | 3 +++ misc/flake.lock | 61 +++++++++++++++++++++++++++++++++++++++++++++++++ misc/flake.nix | 18 +++++++++++++++ 4 files changed, 82 insertions(+), 1 deletion(-) create mode 100644 misc/.envrc create mode 100644 misc/flake.lock create mode 100644 misc/flake.nix diff --git a/flake.nix b/flake.nix index a09c551a..0c56e7c5 100644 --- a/flake.nix +++ b/flake.nix @@ -12,7 +12,6 @@ pkgs.bashInteractive pkgs.cargo-watch pkgs.graphviz - pkgs.julia-bin pkgs.lldb_19 pkgs.libiconv pkgs.samply diff --git a/misc/.envrc b/misc/.envrc new file mode 100644 index 00000000..2ddd3a9c --- /dev/null +++ b/misc/.envrc @@ -0,0 +1,3 @@ +# shellcheck shell=bash +source $HOME/.config/direnv/envrc +use flake diff --git a/misc/flake.lock b/misc/flake.lock new file mode 100644 index 00000000..477036c5 --- /dev/null +++ b/misc/flake.lock @@ -0,0 +1,61 @@ +{ + "nodes": { + "flake-utils": { + "inputs": { + "systems": "systems" + }, + "locked": { + "lastModified": 1731533236, + "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, + "nixpkgs": { + "locked": { + "lastModified": 1736241350, + "narHash": "sha256-CHd7yhaDigUuJyDeX0SADbTM9FXfiWaeNyY34FL1wQU=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "8c9fd3e564728e90829ee7dbac6edc972971cd0f", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixpkgs-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "flake-utils": "flake-utils", + "nixpkgs": "nixpkgs" + } + }, + "systems": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/misc/flake.nix b/misc/flake.nix new file mode 100644 index 00000000..f7f86888 --- /dev/null +++ b/misc/flake.nix @@ -0,0 +1,18 @@ +{ + description = "A basic flake with a shell"; + inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; + inputs.flake-utils.url = "github:numtide/flake-utils"; + + outputs = { self, nixpkgs, flake-utils }: + flake-utils.lib.eachDefaultSystem (system: let + pkgs = nixpkgs.legacyPackages.${system}; + in { + devShells.default = pkgs.mkShell { + packages = [ + pkgs.bashInteractive + pkgs.graphviz + pkgs.julia-bin + ]; + }; + }); +}