From 6b8580e53b4b2afb4e6b38cb64043da79a0f3bc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Amy=20de=20Buitl=C3=A9ir?= Date: Sat, 6 Sep 2025 16:42:22 +0100 Subject: [PATCH] temp --- source/recipes/devshell/flake/main.adoc0 | 2 +- .../devshell/flake/tempwork/flake.lock | 128 ++++++++++++++++++ .../recipes/devshell/flake/tempwork/flake.nix | 21 +++ .../recipes/devshell/haskell-pkg/main.adoc0 | 2 +- source/recipes/devshell/nixpkg/main.adoc0 | 2 +- source/recipes/devshell/non-flake/main.adoc0 | 2 +- 6 files changed, 153 insertions(+), 4 deletions(-) create mode 100644 source/recipes/devshell/flake/tempwork/flake.lock create mode 100644 source/recipes/devshell/flake/tempwork/flake.nix diff --git a/source/recipes/devshell/flake/main.adoc0 b/source/recipes/devshell/flake/main.adoc0 index a437ebf..671adf5 100644 --- a/source/recipes/devshell/flake/main.adoc0 +++ b/source/recipes/devshell/flake/main.adoc0 @@ -1,4 +1,4 @@ -= A flake += Access a flake //// $ mkdir tempwork diff --git a/source/recipes/devshell/flake/tempwork/flake.lock b/source/recipes/devshell/flake/tempwork/flake.lock new file mode 100644 index 0000000..6ae7d59 --- /dev/null +++ b/source/recipes/devshell/flake/tempwork/flake.lock @@ -0,0 +1,128 @@ +{ + "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" + } + }, + "flake-utils_2": { + "inputs": { + "systems": "systems_2" + }, + "locked": { + "lastModified": 1681202837, + "narHash": "sha256-H+Rh19JDwRtpVPAWp64F+rlEtxUWBAQW28eAi3SRSzg=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "cfacdce06f30d2b68473a46042957675eebb3401", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, + "hello-flake": { + "inputs": { + "flake-utils": "flake-utils_2", + "nixpkgs": "nixpkgs" + }, + "locked": { + "lastModified": 1684524031, + "narHash": "sha256-0DYX7S7u5S2no2e6jiIv7cRfbpM5JBJq7+/1CUKEGxA=", + "ref": "refs/heads/main", + "rev": "099bfadc43f79a8929809bd097d12ef5de73ef62", + "revCount": 24, + "type": "git", + "url": "https://codeberg.org/mhwombat/hello-flake" + }, + "original": { + "type": "git", + "url": "https://codeberg.org/mhwombat/hello-flake" + } + }, + "nixpkgs": { + "locked": { + "lastModified": 1681665000, + "narHash": "sha256-hDGTR59wC3qrQZFxVi2U3vTY+r02+Okbq080hO1C4Nk=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "3a6205d9f79fe526be03d8c465403b118ca4cf37", + "type": "github" + }, + "original": { + "owner": "NixOS", + "repo": "nixpkgs", + "type": "github" + } + }, + "nixpkgs_2": { + "locked": { + "lastModified": 1757172738, + "narHash": "sha256-wt4izkhUOlFBMt6Zc4TRG8U769Iq79l5rAU1W5aevVg=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "3ef96d876cd8cb511b809a942dc5e1072636b85b", + "type": "github" + }, + "original": { + "owner": "NixOS", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "flake-utils": "flake-utils", + "hello-flake": "hello-flake", + "nixpkgs": "nixpkgs_2" + } + }, + "systems": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + }, + "systems_2": { + "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/source/recipes/devshell/flake/tempwork/flake.nix b/source/recipes/devshell/flake/tempwork/flake.nix new file mode 100644 index 0000000..0db427b --- /dev/null +++ b/source/recipes/devshell/flake/tempwork/flake.nix @@ -0,0 +1,21 @@ +{ + inputs = { + nixpkgs.url = "github:NixOS/nixpkgs"; + flake-utils.url = "github:numtide/flake-utils"; + hello-flake.url = "git+https://codeberg.org/mhwombat/hello-flake"; + }; + + outputs = { self, nixpkgs, flake-utils, hello-flake }: + flake-utils.lib.eachDefaultSystem (system: + let + pkgs = import nixpkgs { inherit system; }; + in + { + devShells = rec { + default = pkgs.mkShell { + buildInputs = [ hello-flake.packages.${system}.hello ]; + }; + }; + } + ); +} diff --git a/source/recipes/devshell/haskell-pkg/main.adoc0 b/source/recipes/devshell/haskell-pkg/main.adoc0 index ca799e3..6cc1bcb 100644 --- a/source/recipes/devshell/haskell-pkg/main.adoc0 +++ b/source/recipes/devshell/haskell-pkg/main.adoc0 @@ -1,4 +1,4 @@ -= A Haskell library package in the nixpkgs repo (without a `.cabal` file) += Access a Haskell library package in the nixpkgs repo (without a `.cabal` file) //// $ mkdir tempwork diff --git a/source/recipes/devshell/nixpkg/main.adoc0 b/source/recipes/devshell/nixpkg/main.adoc0 index a556a0b..6c7bc6d 100644 --- a/source/recipes/devshell/nixpkg/main.adoc0 +++ b/source/recipes/devshell/nixpkg/main.adoc0 @@ -1,4 +1,4 @@ -= A top level package from the Nixpkgs/NixOS repo += Access a top level package from the Nixpkgs/NixOS repo //// $ mkdir tempwork diff --git a/source/recipes/devshell/non-flake/main.adoc0 b/source/recipes/devshell/non-flake/main.adoc0 index b48aad0..a35a3dd 100644 --- a/source/recipes/devshell/non-flake/main.adoc0 +++ b/source/recipes/devshell/non-flake/main.adoc0 @@ -1,4 +1,4 @@ -= A non-flake package (not in nixpkgs) += Access a non-flake package (not in nixpkgs) //// $ mkdir tempwork