Here is my flake (mostly generated with nix run 'github:tek/hix?ref=0.8.0#new' -- --name 'test-envs' --author 'Me'):
{
description = "A Haskell project";
inputs.hix.url = "github:tek/hix?ref=0.8.0";
outputs =
{ hix, ... }:
hix (
{ config, ... }:
{
hackage.versionFile = "ops/version.nix";
cabal = {
license = "BSD-2-Clause-Patent";
license-file = "LICENSE";
author = "Me";
ghc-options = [ "-Wall" ];
};
envs.example = {
ghc.compiler = "ghc94";
buildInputs = [ config.pkgs.socat ];
services.postgres = {
enable = true;
config = {
name = "test-db";
};
};
};
packages.test-envs = {
src = ./.;
cabal.meta.synopsis = "A Haskell project";
library = {
enable = true;
dependencies = [
"containers"
];
};
executable.enable = true;
};
}
);
}
If I try to enter the dev shell:
❯ nix develop .#example
error: flake 'git+file://(...)/test-envs' does not provide attribute 'devShells.x86_64-linux.example', 'packages.x86_64-linux.example', 'legacyPackages.x86_64-linux.example' or 'example'
Am I doing something wrong?
I also tried running the included postgres service from the dev env instead but seems it doesn't start when entering the dev shell.
Here is my flake (mostly generated with
nix run 'github:tek/hix?ref=0.8.0#new' -- --name 'test-envs' --author 'Me'):If I try to enter the dev shell:
Am I doing something wrong?
I also tried running the included postgres service from the
devenv instead but seems it doesn't start when entering the dev shell.