Skip to content

Instantly share code, notes, and snippets.

@mcdonc
Created March 1, 2024 09:36
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 mcdonc/7e7b58a272ef90eaf166a538ff72b08c to your computer and use it in GitHub Desktop.
Save mcdonc/7e7b58a272ef90eaf166a538ff72b08c to your computer and use it in GitHub Desktop.
{
description = "Langusta - link aggregator in Elixir";
inputs.nixpkgs.url = "flake:nixpkgs";
inputs.flake-parts.url = "github:hercules-ci/flake-parts";
inputs.devenv = {
url = "github:cachix/devenv/python-rewrite";
inputs.nixpkgs.follows = "nixpkgs";
};
outputs = {
flake-parts,
devenv,
...
} @ inputs:
flake-parts.lib.mkFlake {inherit inputs;} {
systems = [
"x86_64-linux"
];
perSystem = {
self',
inputs',
pkgs,
...
}: {
devShells = let
mkShell = args: devenv.lib.mkShell ({inherit inputs pkgs;} // args);
in {
default = mkShell {
modules = [
{
env.ABC = "123";
}
];
};
};
};
};
}
❯ nix develop --impure
(devenv)
[chrism@optinix:~/tmp/hauleth]$ env|grep ABC
ABC=123
(devenv)
[chrism@optinix:~/tmp/hauleth]$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment