Skip to content

Instantly share code, notes, and snippets.

@ethnt
Created July 28, 2023 14:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ethnt/942552ace6426dab48fcf813af6c00f2 to your computer and use it in GitHub Desktop.
Save ethnt/942552ace6426dab48fcf813af6c00f2 to your computer and use it in GitHub Desktop.
devenv bug
{
description = "Description for the project";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
devenv.url = "github:cachix/devenv";
# nix2container.url = "github:nlewo/nix2container";
# nix2container.inputs.nixpkgs.follows = "nixpkgs";
# mk-shell-bin.url = "github:rrbutani/nix-mk-shell-bin";
};
nixConfig = {
extra-trusted-public-keys =
"devenv.cachix.org-1:w1cLUi8dv3hnoSPGAuibQv+f9TZLr6cv/Hm9XgU50cw=";
extra-substituters = "https://devenv.cachix.org";
};
outputs = inputs@{ flake-parts, ... }:
flake-parts.lib.mkFlake { inherit inputs; } {
imports = [ inputs.devenv.flakeModule ];
systems = [ "x86_64-linux" "x86_64-darwin" ];
perSystem = { config, self', inputs', pkgs, system, ... }: {
packages.default = pkgs.hello;
devenv.shells.default = {
name = "my-project";
imports = [ ];
packages = [ config.packages.default ];
};
};
flake = { };
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment