Skip to content

The GraphX template submodule is defined in .gitmodules, but isn't used #498

Closed
@myclevorname

Description

@myclevorname

I am making a Nix flake for this repo, shown below. When running nix flake lock, Nix complains that '«unknown»/examples/graphx/template' does not exist. Looking at the source tree, the folder examples/graphx/template does not exist or refer to anything.

{
  description = "Toolchain and libraries for C/C++ programming on the TI-84+ CE calculator series";

  inputs = {
    nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
    llvm-ez80.url = "github:myclevorname/llvm-ez80";
    toolchain = {
      flake = false;
      type = "git";
      submodules = true;
      url = "https://github.com/CE-Programming/toolchain";
    };
    flake-utils.url = "github:numtide/flake-utils";
  };

  outputs = { self, nixpkgs, llvm-ez80, toolchain, flake-utils }:
    flake-utils.lib.eachSystem [ "x86_64-linux" "x86_64-darwin" ] (system:
      let pkgs = nixpkgs.legacyPackages.${system}; in rec {
        packages.default = packages.ce-toolchain;
        packages.ce-toolchain = pkgs.stdenv.mkDerivation {
          src = toolchain;
          name = "ce-toolchain";
          patchPhase = ''
            substituteInPlace src/common.mk --replace-fail \
            "INSTALL_DIR := \$(DESTDIR)\$(PREFIX)" "INSTALL_DIR := $out"
            substituteInPlace makefile --replace-fail \
            "TOOLS := fasmg convbin convimg convfont cedev-config" \
            "TOOLS := fasmg cedev-config"
          '';
          doCheck = true;
          buildInputs = with pkgs; [ convbin convimg convfont fasmg llvm-ez80.packages.${system}.default ];
          meta.mainProgram = "cedev-config";
        };
      }
    );
}

And the full error Nix gave is:

warning: Git tree '/home/clevor/Code/flakes/ce-toolchain' is dirty
error:
       … while updating the lock file of flake 'git+file:///home/clevor/Code/flakes/ce-toolchain'

       … while updating the flake input 'toolchain'

       … while fetching the input 'git+https://github.com/CE-Programming/toolchain?submodules=1'

       error: '«unknown»/examples/graphx/template' does not exist

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions