From 1d7cc819ba813d48b80650f29a00e453b7e500db Mon Sep 17 00:00:00 2001 From: Michael Vorburger Date: Sat, 22 Mar 2025 17:23:36 +0100 Subject: [PATCH] chore: Add .flox/ as generated by `flox init` for https://flox.dev (Nix) #DevEnv to make it easy to Build from Source e.g. on (current!) Fedora 41 which still has Go 1.23 instead of 1.24 --- .flox/.gitignore | 5 ++ .flox/env.json | 4 ++ .flox/env/manifest.lock | 146 ++++++++++++++++++++++++++++++++++++++++ .flox/env/manifest.toml | 81 ++++++++++++++++++++++ 4 files changed, 236 insertions(+) create mode 100644 .flox/.gitignore create mode 100644 .flox/env.json create mode 100644 .flox/env/manifest.lock create mode 100644 .flox/env/manifest.toml diff --git a/.flox/.gitignore b/.flox/.gitignore new file mode 100644 index 00000000000..8d211868311 --- /dev/null +++ b/.flox/.gitignore @@ -0,0 +1,5 @@ +run/ +cache/ +lib/ +log/ +!env/ diff --git a/.flox/env.json b/.flox/env.json new file mode 100644 index 00000000000..419debc1235 --- /dev/null +++ b/.flox/env.json @@ -0,0 +1,4 @@ +{ + "name": "kubo", + "version": 1 +} \ No newline at end of file diff --git a/.flox/env/manifest.lock b/.flox/env/manifest.lock new file mode 100644 index 00000000000..ab601ce5177 --- /dev/null +++ b/.flox/env/manifest.lock @@ -0,0 +1,146 @@ +{ + "lockfile-version": 1, + "manifest": { + "version": 1, + "install": { + "go": { + "pkg-path": "go", + "version": "^1.24" + } + }, + "hook": { + "on-activate": " # Autogenerated by Flox\n\n # Point GOENV to Flox environment cache\n export GOENV=\"$FLOX_ENV_CACHE/goenv\"\n\n # Install Go dependencies\n go get .\n\n # End autogenerated by Flox\n" + }, + "profile": {}, + "options": { + "systems": [ + "aarch64-darwin", + "aarch64-linux", + "x86_64-darwin", + "x86_64-linux" + ], + "allow": { + "licenses": [] + }, + "semver": {} + } + }, + "packages": [ + { + "attr_path": "go", + "broken": false, + "derivation": "/nix/store/3m81p42iv5k7hsh4ddwmgfl4bvk5c0cz-go-1.24.1.drv", + "description": "Go Programming language", + "install_id": "go", + "license": "BSD-3-Clause", + "locked_url": "https://github.com/flox/nixpkgs?rev=a84ebe20c6bc2ecbcfb000a50776219f48d134cc", + "name": "go-1.24.1", + "pname": "go", + "rev": "a84ebe20c6bc2ecbcfb000a50776219f48d134cc", + "rev_count": 770807, + "rev_date": "2025-03-19T22:12:44Z", + "scrape_date": "2025-03-22T01:09:07.268762Z", + "stabilities": [ + "unstable" + ], + "unfree": false, + "version": "1.24.1", + "outputs_to_install": [ + "out" + ], + "outputs": { + "out": "/nix/store/ja4jxx60lh1qfqfl4z4p2rff56ia1c3c-go-1.24.1" + }, + "system": "aarch64-darwin", + "group": "toplevel", + "priority": 5 + }, + { + "attr_path": "go", + "broken": false, + "derivation": "/nix/store/0id8swmh8ilp0ivgpxb7qzp35mqn9rb9-go-1.24.1.drv", + "description": "Go Programming language", + "install_id": "go", + "license": "BSD-3-Clause", + "locked_url": "https://github.com/flox/nixpkgs?rev=a84ebe20c6bc2ecbcfb000a50776219f48d134cc", + "name": "go-1.24.1", + "pname": "go", + "rev": "a84ebe20c6bc2ecbcfb000a50776219f48d134cc", + "rev_count": 770807, + "rev_date": "2025-03-19T22:12:44Z", + "scrape_date": "2025-03-22T01:25:55.714961Z", + "stabilities": [ + "unstable" + ], + "unfree": false, + "version": "1.24.1", + "outputs_to_install": [ + "out" + ], + "outputs": { + "out": "/nix/store/8ply43gnxk1xwichr81mpgbjcd9a1y5w-go-1.24.1" + }, + "system": "aarch64-linux", + "group": "toplevel", + "priority": 5 + }, + { + "attr_path": "go", + "broken": false, + "derivation": "/nix/store/mrf18v48xzv6kq8ydpg9wa4zzvhpk6q3-go-1.24.1.drv", + "description": "Go Programming language", + "install_id": "go", + "license": "BSD-3-Clause", + "locked_url": "https://github.com/flox/nixpkgs?rev=a84ebe20c6bc2ecbcfb000a50776219f48d134cc", + "name": "go-1.24.1", + "pname": "go", + "rev": "a84ebe20c6bc2ecbcfb000a50776219f48d134cc", + "rev_count": 770807, + "rev_date": "2025-03-19T22:12:44Z", + "scrape_date": "2025-03-22T01:41:11.744336Z", + "stabilities": [ + "unstable" + ], + "unfree": false, + "version": "1.24.1", + "outputs_to_install": [ + "out" + ], + "outputs": { + "out": "/nix/store/87yxrfx5lh78bdz393i33cr5z23x06q4-go-1.24.1" + }, + "system": "x86_64-darwin", + "group": "toplevel", + "priority": 5 + }, + { + "attr_path": "go", + "broken": false, + "derivation": "/nix/store/d9678q90mwgfn00ygr1xfgxhg8pfz1y5-go-1.24.1.drv", + "description": "Go Programming language", + "install_id": "go", + "license": "BSD-3-Clause", + "locked_url": "https://github.com/flox/nixpkgs?rev=a84ebe20c6bc2ecbcfb000a50776219f48d134cc", + "name": "go-1.24.1", + "pname": "go", + "rev": "a84ebe20c6bc2ecbcfb000a50776219f48d134cc", + "rev_count": 770807, + "rev_date": "2025-03-19T22:12:44Z", + "scrape_date": "2025-03-22T01:59:12.832128Z", + "stabilities": [ + "unstable" + ], + "unfree": false, + "version": "1.24.1", + "outputs_to_install": [ + "out" + ], + "outputs": { + "out": "/nix/store/cfjhl0kn7xc65466pha9fkrvigw3g72n-go-1.24.1" + }, + "system": "x86_64-linux", + "group": "toplevel", + "priority": 5 + } + ] +} \ No newline at end of file diff --git a/.flox/env/manifest.toml b/.flox/env/manifest.toml new file mode 100644 index 00000000000..6e6102793fc --- /dev/null +++ b/.flox/env/manifest.toml @@ -0,0 +1,81 @@ +## Flox Environment Manifest ----------------------------------------- +## +## _Everything_ you need to know about the _manifest_ is here: +## +## https://flox.dev/docs/concepts/manifest +## +## ------------------------------------------------------------------- +# Flox manifest version managed by Flox CLI +version = 1 + + +## Install Packages -------------------------------------------------- +## $ flox install gum <- puts a package in [install] section below +## $ flox search gum <- search for a package +## $ flox show gum <- show all versions of a package +## ------------------------------------------------------------------- +[install] +go = { pkg-path = "go", version = "^1.24" } + + +## Environment Variables --------------------------------------------- +## ... available for use in the activated environment +## as well as [hook], [profile] scripts and [services] below. +## ------------------------------------------------------------------- +[vars] +# INTRO_MESSAGE = "It's gettin' Flox in here" + + +## Activation Hook --------------------------------------------------- +## ... run by _bash_ shell when you run 'flox activate'. +## ------------------------------------------------------------------- +[hook] +on-activate = ''' + # Autogenerated by Flox + + # Point GOENV to Flox environment cache + export GOENV="$FLOX_ENV_CACHE/goenv" + + # Install Go dependencies + go get . + + # End autogenerated by Flox +''' + + +## Profile script ---------------------------------------------------- +## ... sourced by _your shell_ when you run 'flox activate'. +## ------------------------------------------------------------------- +[profile] +# common = ''' +# gum style \ +# --foreground 212 --border-foreground 212 --border double \ +# --align center --width 50 --margin "1 2" --padding "2 4" \ +# $INTRO_MESSAGE +# ''' +## Shell specific profiles go here: +# bash = ... +# zsh = ... +# fish = ... + + +## Services ---------------------------------------------------------- +## $ flox services start <- Starts all services +## $ flox services status <- Status of running services +## $ flox activate --start-services <- Activates & starts all +## ------------------------------------------------------------------- +[services] +# myservice.command = "python3 -m http.server" + + +## Other Environment Options ----------------------------------------- +[options] +# Systems that environment is compatible with +systems = [ + "aarch64-darwin", + "aarch64-linux", + "x86_64-darwin", + "x86_64-linux", +] +# Uncomment to disable CUDA detection. +# cuda-detection = false