~pamplemousse/Queens

0a0563af1a1a92450b48ca01c08e0f1ab69abbc9 — Pamplemousse 3 months ago 253fe1e
Work environment
3 files changed, 102 insertions(+), 0 deletions(-)

M README.md
A flake.lock
A flake.nix
M README.md => README.md +5 -0
@@ 1,1 1,6 @@
# Queens

```shell
# get a working environment
nix develop
```

A flake.lock => flake.lock +60 -0
@@ 0,0 1,60 @@
{
  "nodes": {
    "flake-utils": {
      "inputs": {
        "systems": "systems"
      },
      "locked": {
        "lastModified": 1710146030,
        "narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=",
        "owner": "numtide",
        "repo": "flake-utils",
        "rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a",
        "type": "github"
      },
      "original": {
        "owner": "numtide",
        "repo": "flake-utils",
        "type": "github"
      }
    },
    "nixpkgs": {
      "locked": {
        "lastModified": 1723392320,
        "narHash": "sha256-k2WDFjNhcBEaixDM1je7Urd74kKmtYfc5iiMurQK6nw=",
        "owner": "nixos",
        "repo": "nixpkgs",
        "rev": "aab5907b0bc33fea156876fcff468998ed22d76b",
        "type": "github"
      },
      "original": {
        "owner": "nixos",
        "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
}

A flake.nix => flake.nix +37 -0
@@ 0,0 1,37 @@
{
  description = "";

  inputs = {
    flake-utils.url = "github:numtide/flake-utils";
    nixpkgs.url = "github:nixos/nixpkgs";
  };

  outputs = { self, flake-utils, nixpkgs }:
    let
      codeqlOverlay = (final: prev: {
        codeql = prev.codeql.overrideAttrs rec {
          version = "2.18.1";
          src = prev.fetchzip {
            url = "https://github.com/github/codeql-cli-binaries/releases/download/v${version}/codeql.zip";
            hash = "sha256-X/Sg5+UGl0DJ5LL42tlQt3NIfTJc4nH1AySeLJQsZkk=";
          };
        };
      });
    in
    flake-utils.lib.eachDefaultSystem (system:
      let
        pkgs = import nixpkgs {
          inherit system;
          overlays = [ codeqlOverlay ];
          config.allowUnfree = true;
        };
      in
      {
        devShell = pkgs.mkShell {
          buildInputs = with pkgs; [
            codeql
          ];
        };
      }
    );
}