DEVELOPMENT ENVIRONMENT

~liljamo/src.quest-anemos

a3e128292c63027c336e103d74811761bebb029c — Jonni Liljamo 9 days ago
feat: init
4 files changed, 122 insertions(+), 0 deletions(-)

A .envrc
A .gitignore
A flake.lock
A flake.nix
A  => .envrc +1 -0
@@ 1,1 @@
use_flake

A  => .gitignore +1 -0
@@ 1,1 @@
/.direnv/

A  => flake.lock +87 -0
@@ 1,87 @@
{
  "nodes": {
    "flake-parts": {
      "inputs": {
        "nixpkgs-lib": "nixpkgs-lib"
      },
      "locked": {
        "lastModified": 1763759067,
        "narHash": "sha256-LlLt2Jo/gMNYAwOgdRQBrsRoOz7BPRkzvNaI/fzXi2Q=",
        "owner": "hercules-ci",
        "repo": "flake-parts",
        "rev": "2cccadc7357c0ba201788ae99c4dfa90728ef5e0",
        "type": "github"
      },
      "original": {
        "owner": "hercules-ci",
        "repo": "flake-parts",
        "type": "github"
      }
    },
    "makeimg": {
      "inputs": {
        "flake-parts": [
          "flake-parts"
        ],
        "nixpkgs": [
          "nixpkgs"
        ]
      },
      "locked": {
        "host": "git.src.quest",
        "lastModified": 1764101542,
        "narHash": "sha256-hg5137qK9WhhJojQAGJNlxdvQU884DNGwe3v3jKqRVg=",
        "owner": "~liljamo",
        "repo": "makeimg.nix",
        "rev": "279df7c459731030b5b94fd78a9f1c497f59e290",
        "type": "sourcehut"
      },
      "original": {
        "host": "git.src.quest",
        "owner": "~liljamo",
        "repo": "makeimg.nix",
        "type": "sourcehut"
      }
    },
    "nixpkgs": {
      "locked": {
        "lastModified": 1763934636,
        "narHash": "sha256-9glbI7f1uU+yzQCq5LwLgdZqx6svOhZWkd4JRY265fc=",
        "owner": "nixos",
        "repo": "nixpkgs",
        "rev": "ee09932cedcef15aaf476f9343d1dea2cb77e261",
        "type": "github"
      },
      "original": {
        "owner": "nixos",
        "ref": "nixpkgs-unstable",
        "repo": "nixpkgs",
        "type": "github"
      }
    },
    "nixpkgs-lib": {
      "locked": {
        "lastModified": 1761765539,
        "narHash": "sha256-b0yj6kfvO8ApcSE+QmA6mUfu8IYG6/uU28OFn4PaC8M=",
        "owner": "nix-community",
        "repo": "nixpkgs.lib",
        "rev": "719359f4562934ae99f5443f20aa06c2ffff91fc",
        "type": "github"
      },
      "original": {
        "owner": "nix-community",
        "repo": "nixpkgs.lib",
        "type": "github"
      }
    },
    "root": {
      "inputs": {
        "flake-parts": "flake-parts",
        "makeimg": "makeimg",
        "nixpkgs": "nixpkgs"
      }
    }
  },
  "root": "root",
  "version": 7
}

A  => flake.nix +33 -0
@@ 1,33 @@
{
  inputs = {
    nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
    flake-parts.url = "github:hercules-ci/flake-parts";

    makeimg = {
      url = "sourcehut:~liljamo/makeimg.nix?host=git.src.quest";
      inputs = {
        nixpkgs.follows = "nixpkgs";
        flake-parts.follows = "flake-parts";
      };
    };
  };

  outputs = inputs @ {...}:
    inputs.flake-parts.lib.mkFlake {inherit inputs;} {
      systems = ["x86_64-linux"];
      perSystem = {
        pkgs,
        system,
        ...
      }: {
        devShells.default = pkgs.mkShell {
          buildInputs = with pkgs; [
            inputs.makeimg.packages.${system}.default

            # tools
            just
          ];
        };
      };
    };
}