Verified Commit fbacfc14 authored by TECHNOFAB's avatar TECHNOFAB 🐈
Browse files

chore: initial commit

parents
Loading
Loading
Loading
Loading

.envrc

0 → 100644
+3 −0
Original line number Diff line number Diff line
source $(fetchurl https://gitlab.com/rensa-nix/direnv/-/raw/v0.2.0/direnvrc "sha256-PFFxlZWNz/LLuNHA1Zpu2qdC3MF+oukv/TxFj5Utixk=")
REN_FLAKE_ATTR=__std
use ren //repo/devShells/default
+19 −0
Original line number Diff line number Diff line
{
  inputs,
  cell,
}: {
  bench = inputs.nixpkgs.writeShellApplication {
    name = "benchmark";
    runtimeInputs = [inputs.nixpkgs.hyperfine];
    text = ''
      echo "Comparison cases first:"
      hyperfine -w 3 \
        'nix-instantiate ${inputs.self}/benchmark/shared.nix' \
        'nix-instantiate ${inputs.self}/benchmark/empty.nix'
      echo "Now real benchmark:"
      hyperfine -w 3 \
        'nix-instantiate ${inputs.self}/benchmark/nixpkgs-shell.nix' \
        'nix-instantiate ${inputs.self}/benchmark/devshell.nix'
    '';
  };
}
+17 −0
Original line number Diff line number Diff line
{
  inputs,
  cell,
}: let
  devshell = import "${inputs.self}/lib" {
    pkgs = inputs.nixpkgs;
  };
in {
  default = devshell.mkShell {
    packages = [inputs.nixpkgs.alejandra];
    env."HELLO".value = "world!";
    enterShellCommands.test = {
      text = "echo Hello $HELLO";
      deps = ["env"];
    };
  };
}

.nix/repo/flake.lock

0 → 100644
+28 −0
Original line number Diff line number Diff line
{
  "nodes": {
    "nixtest-lib": {
      "locked": {
        "dir": "lib",
        "lastModified": 1753957623,
        "narHash": "sha256-kdImwKx57N0QL8HPUUb5ADwXFgSjaNOk39b/eKlzyTo=",
        "owner": "TECHNOFAB",
        "repo": "nixtest",
        "rev": "22b43c9fe83be73c3f0648bbb54bc3c1cf7f96df",
        "type": "gitlab"
      },
      "original": {
        "dir": "lib",
        "owner": "TECHNOFAB",
        "repo": "nixtest",
        "type": "gitlab"
      }
    },
    "root": {
      "inputs": {
        "nixtest-lib": "nixtest-lib"
      }
    }
  },
  "root": "root",
  "version": 7
}

.nix/repo/flake.nix

0 → 100644
+6 −0
Original line number Diff line number Diff line
{
  inputs = {
    nixtest-lib.url = "gitlab:TECHNOFAB/nixtest?dir=lib";
  };
  outputs = i: i;
}
Loading