~rfc1149/adasockets

71035ab3b98584ed3a94c9a13b0ad86bd92e0cc6 — Samuel Tardieu 10 months ago d175890
Development flake for NixOS
3 files changed, 88 insertions(+), 0 deletions(-)

A .builds/nixos-flake.yml
A flake.lock
A flake.nix
A .builds/nixos-flake.yml => .builds/nixos-flake.yml +7 -0
@@ 0,0 1,7 @@
image: nixos/unstable
arch: x86_64
environment:
  NIX_CONFIG: "experimental-features = nix-command flakes"
tasks:
  - build-flake: |
      nix build ./adasockets

A flake.lock => flake.lock +60 -0
@@ 0,0 1,60 @@
{
  "nodes": {
    "flake-utils": {
      "inputs": {
        "systems": "systems"
      },
      "locked": {
        "lastModified": 1689068808,
        "narHash": "sha256-6ixXo3wt24N/melDWjq70UuHQLxGV8jZvooRanIHXw0=",
        "owner": "numtide",
        "repo": "flake-utils",
        "rev": "919d646de7be200f3bf08cb76ae1f09402b6f9b4",
        "type": "github"
      },
      "original": {
        "owner": "numtide",
        "repo": "flake-utils",
        "type": "github"
      }
    },
    "nixpkgs": {
      "locked": {
        "lastModified": 1690400617,
        "narHash": "sha256-EjEfE/g6NZ+okI91hFK9g1boa5K6nMNKgwvL/oAkuls=",
        "owner": "nixos",
        "repo": "nixpkgs",
        "rev": "906f999a2fc8ff1617bd6ca5866157e8aab78260",
        "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 +21 -0
@@ 0,0 1,21 @@
{
  description = "Development flake for AdaSockets";

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

  outputs = { self, nixpkgs, flake-utils }:
    flake-utils.lib.eachDefaultSystem (system:
      let pkgs = import nixpkgs { inherit system; };
      in {
        devShells.default = pkgs.mkShell {
          packages = with pkgs; [
            autoreconfHook gnat autoconf automake libtool gnum4 texinfo
            texlive.combined.scheme-small autogen
          ];
        };
      }
    );
}