diff options
| author | DJ O'Leary <dijitol@proton.me> | 2026-08-24 00:39:34 +0200 |
|---|---|---|
| committer | DJ O'Leary <dijitol@proton.me> | 2026-08-24 00:39:34 +0200 |
| commit | fb536b43497d2893b53341896ad1d6d549cb423f (patch) | |
| tree | 74a9d4f8bf8ad3d1cbba6d8322cb5acee5ea1701 | |
init
| -rw-r--r-- | .envrc | 1 | ||||
| -rw-r--r-- | .gitignore | 5 | ||||
| -rw-r--r-- | flake.lock | 61 | ||||
| -rw-r--r-- | flake.nix | 33 | ||||
| -rw-r--r-- | go.mod | 5 | ||||
| -rw-r--r-- | main.go | 7 |
6 files changed, 112 insertions, 0 deletions
@@ -0,0 +1 @@ +use flake
\ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f5adaf3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +# Nix +result* + +# Misc +.direnv diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..9c5c016 --- /dev/null +++ b/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": 1787360063, + "narHash": "sha256-dt4WdcvsA8/RCe+VZZwqU0X+XMM3wBbGCWA0/sFWzGo=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "2c423e03bbafcff28bfadc6781a4a8257f205cb5", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-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/flake.nix b/flake.nix new file mode 100644 index 0000000..5145046 --- /dev/null +++ b/flake.nix @@ -0,0 +1,33 @@ +{ + inputs = { + nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; + flake-utils.url = "github:numtide/flake-utils"; + }; + + outputs = + { nixpkgs, flake-utils, ... }: + flake-utils.lib.eachDefaultSystem ( + system: + let + pkgs = nixpkgs.legacyPackages.${system}; + + nativeBuildInputs = with pkgs; [ + go + gopls + ]; + buildInputs = with pkgs; [ ]; + in + { + devShells.default = pkgs.mkShell { inherit nativeBuildInputs buildInputs; }; + + packages.default = pkgs.buildGoModule rec { + name = "Collector Ouphe"; + src = ./.; + + inherit buildInputs; + + vendorHash = null; + }; + } + ); +} @@ -0,0 +1,5 @@ +module codeberg.org/dijitol/collector_ouphe + +replace codeberg.org/dijitol/collector_ouphe => ./ + +go 1.26.5 @@ -0,0 +1,7 @@ +package main + +import "fmt" + +func main() { + fmt.Println("Hello, World!") +} |
