Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change version to 0.0.9 #79

Closed
wants to merge 2 commits into from
Closed

Change version to 0.0.9 #79

wants to merge 2 commits into from

Conversation

emilpriver
Copy link
Contributor

Hey,
Is the 0.0.9+dev tag the one to use? I get 404 when I try to use the flake

ping @metame

@metame
Copy link
Contributor

metame commented May 14, 2024

Hey, Is the 0.0.9+dev tag the one to use? I get 404 when I try to use the flake

ping @metame

I'm skeptical of this fixing anything. The version here has nothing to do with git tags. So if you're trying to use 0.0.9+dev as a git tag on your input then that's definitely going to 404. If you want to post the way you're referencing it in your flake then I can better deduce what the issue is.

@emilpriver
Copy link
Contributor Author

emilpriver commented May 15, 2024

Hey @metame The issue I get is

fatal: couldn't find remote ref refs/tags/0.0.9+dev

and the only place where I see this 0.0.9+dev is within the flake.nix

it might be a skill issue on my side but I post my flake.nix as well if it helps

{
  description = "DBCaml is a database library for OCaml";

  inputs = {
    nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
    riot = {
      url = "github:riot-ml/riot";
      inputs.nixpkgs.follows = "nixpkgs";
    };
    bytestring = {
      url = "github:riot-ml/bytestring";
      inputs.nixpkgs.follows = "nixpkgs";
    };
    serde = {
      url = "github:serde-ml/serde";
      inputs.nixpkgs.follows = "nixpkgs";
    };
  };

  outputs = inputs@{ self, nixpkgs, flake-parts, ... }:
    flake-parts.lib.mkFlake { inherit inputs; } {
      systems = [ "x86_64-linux" "aarch64-linux" "aarch64-darwin" "x86_64-darwin" ];
      perSystem = { config, self', inputs', pkgs, system, ... }:
        let
          inherit (pkgs) ocamlPackages mkShell lib;
          inherit (ocamlPackages) buildDunePackage;
          version = "0.0.2";
        in
        {
          formatter = nixpkgs.legacyPackages.x86_64-linux.nixpkgs-fmt;
          devShells = {
            default = mkShell.override { stdenv = pkgs.clang17Stdenv; } {
              buildInputs = with ocamlPackages; [
                dune_3
                ocaml
                utop
                ocamlformat
              ];
              inputsFrom = [
                self'.packages.dbcaml
                self'.packages.dbcaml_driver_postgres
                self'.packages.silo
                self'.packages.serde_postgres
              ];
              packages = builtins.attrValues {
                inherit (pkgs) clang_17 clang-tools_17 pkg-config;
                inherit (ocamlPackages) ocaml-lsp ocamlformat-rpc-lib;
              };
            };
          };
          packages = {
            randomconv = buildDunePackage {
              version = "0.2.0";
              pname = "randomconv";
              src = pkgs.fetchFromGithub {
                owner = "hannesm";
                repo = "randomconv";
                rev = "b2ce656d09738d676351f5a1c18aff0ff37a7dcc";
                sha256 = "";
              };
            };
            dbcaml = buildDunePackage {
              inherit version;
              pname = "dbcaml";
              propagatedBuildInputs = with ocamlPackages; [
                inputs'.riot.packages.default
                alcotest
                uri
              ];
              src = ./dbcaml;
            };
            dbcaml_driver_postgres = buildDunePackage {
              inherit version;
              pname = "dbcaml-driver-postgres";
              propagatedBuildInputs = with ocamlPackages; [
                inputs'.riot.packages.default
                self'.packages.dbcaml
                inputs'.bytestring.packages.default
                alcotest
                uri
                cryptokit
                self'.packages.serde_postgres
              ];
              src = ./dbcaml-driver-postgres;
            };
            serde_postgres = buildDunePackage {
              inherit version;
              pname = "serde_postgres";
              propagatedBuildInputs = with ocamlPackages; [
                inputs'.serde.packages.serde
                inputs'.serde.packages.serde_derive
                alcotest
              ];
              src = ./serde-postgres;
            };
            silo = buildDunePackage {
              inherit version;
              pname = "silo";
              propagatedBuildInputs = with ocamlPackages; [
                self'.packages.dbcaml
                self'.packages.dbcaml_driver_postgres
                self'.packages.serde_postgres
                alcotest
              ];
              src = ./silo;
            };
          };
        };
    };
}

@emilpriver emilpriver closed this May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants