1
Fork 0
mirror of https://github.com/RGBCube/alejandra synced 2025-07-30 12:07:46 +00:00

feat: simplify nix stable installation

This commit is contained in:
Kevin Amado 2022-06-23 12:22:25 -06:00
parent 1fad955df3
commit bd7ca846d5
2 changed files with 36 additions and 30 deletions

View file

@ -8,4 +8,18 @@ let
};
flake = import flakeCompatSrc {src = ./.;};
in
flake.defaultNix.defaultPackage
{system ? builtins.currentSystem, ...}:
if builtins.hasAttr system flake.defaultNix.defaultPackage
then flake.defaultNix.defaultPackage.${system}
else
builtins.throw ''
Alejandra does not support the system: ${system}
Please consider creating an issue requesting
support for such system:
https://github.com/kamadorueda/alejandra
Thank you!
''