From d122c3b4183fa75691b66f489eee6fff73d1043f Mon Sep 17 00:00:00 2001 From: Julian Sutter Date: Thu, 18 Dec 2025 18:53:46 -0800 Subject: [PATCH] more octofriend --- appflakes/octofriend/flake.lock | 78 +++++++++++++++++++++++++++++++++ appflakes/octofriend/flake.nix | 2 +- appflakes/octofriend/result | 1 + desktop/dev.nix | 3 ++ 4 files changed, 83 insertions(+), 1 deletion(-) create mode 100644 appflakes/octofriend/flake.lock create mode 120000 appflakes/octofriend/result diff --git a/appflakes/octofriend/flake.lock b/appflakes/octofriend/flake.lock new file mode 100644 index 0000000..bcd51f3 --- /dev/null +++ b/appflakes/octofriend/flake.lock @@ -0,0 +1,78 @@ +{ + "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": 1765779637, + "narHash": "sha256-KJ2wa/BLSrTqDjbfyNx70ov/HdgNBCBBSQP3BIzKnv4=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "1306659b587dc277866c7b69eb97e5f07864d8c4", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "octofriend": { + "flake": false, + "locked": { + "lastModified": 1766013652, + "narHash": "sha256-X7t2CGNZP+OS2pbMtRAg3XIGq3HA3N3rPk5ELV1FNRQ=", + "owner": "synthetic-lab", + "repo": "octofriend", + "rev": "6d9c260743e4b645fd4b216ce1cd979d5c0dd473", + "type": "github" + }, + "original": { + "owner": "synthetic-lab", + "repo": "octofriend", + "type": "github" + } + }, + "root": { + "inputs": { + "flake-utils": "flake-utils", + "nixpkgs": "nixpkgs", + "octofriend": "octofriend" + } + }, + "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/appflakes/octofriend/flake.nix b/appflakes/octofriend/flake.nix index 56cb9db..cfba23f 100644 --- a/appflakes/octofriend/flake.nix +++ b/appflakes/octofriend/flake.nix @@ -26,7 +26,7 @@ src = octofriend; # First build will fail telling you the correct value. Paste it here. - npmDepsHash = lib.fakeHash; + npmDepsHash = "sha256-luAdTozvb0MTuh+xa5qhZPH8YflF9R4GtREAaR8m6Y8="; # Ensure a modern node (octofriend is a Node CLI). :contentReference[oaicite:1]{index=1} nodejs = pkgs.nodejs_22; diff --git a/appflakes/octofriend/result b/appflakes/octofriend/result new file mode 120000 index 0000000..4932aff --- /dev/null +++ b/appflakes/octofriend/result @@ -0,0 +1 @@ +/nix/store/i6hjy4gz5akh5x0h5pz34wl1plphdhc8-octofriend-git-6d9c260 \ No newline at end of file diff --git a/desktop/dev.nix b/desktop/dev.nix index 4760dfd..3f43552 100644 --- a/desktop/dev.nix +++ b/desktop/dev.nix @@ -2,10 +2,13 @@ { + inputs.octofriend-nix.url = "path:../appflakes/octofriend/flake.nix"; + environment.systemPackages = with pkgs; [ (python3.withPackages(ps: with ps; [ pandas requests python-dotenv pip uv ])) nodejs putty # SSH/Telnet client + octofriend-nix.packages.x86_64-linux.default ]; programs.nix-ld.enable = true;