Created
March 1, 2024 09:36
-
-
Save mcdonc/7e7b58a272ef90eaf166a538ff72b08c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
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"; | |
} | |
]; | |
}; | |
}; | |
}; | |
}; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
❯ 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