Created
June 19, 2023 15:01
-
-
Save SomeoneSerge/f96a4bc80cd534741eaab23c41c88134 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 = "A very basic flake"; | |
outputs = { self, nixpkgs }: { | |
devShells.x86_64-linux.default = with nixpkgs.legacyPackages.x86_64-linux; mkShell { | |
shellHook = '' | |
read FLAKE_ROOT < <( | |
${lib.getExe nix} flake metadata --json | ${lib.getExe jq} .locked.path --raw-output | |
) | |
export FLAKE_ROOT | |
''; | |
}; | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment