diff options
| author | seth <[email protected]> | 2024-07-06 04:02:35 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2024-07-06 04:12:41 -0400 |
| commit | 8875ad5fb466944667e5171035aa8f5c01675e93 (patch) | |
| tree | e453699bbfcc7b8fb566490c8930e60c6adac07b /templates/full/nix/packages.nix | |
| parent | c3ad734168ea13fde1e2f6ec3fbdccf78f72aada (diff) | |
tree-wide: alejandra -> nixfmt
Diffstat (limited to 'templates/full/nix/packages.nix')
| -rw-r--r-- | templates/full/nix/packages.nix | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/templates/full/nix/packages.nix b/templates/full/nix/packages.nix index 562823e..e48cdde 100644 --- a/templates/full/nix/packages.nix +++ b/templates/full/nix/packages.nix @@ -1,18 +1,18 @@ -{self, ...}: let +{ self, ... }: +let version = self.shortRev or self.dirtyShortRev or "unknown"; -in { +in +{ flake.overlays.default = _: prev: { - hello = prev.callPackage ./derivation.nix {inherit version;}; + hello = prev.callPackage ./derivation.nix { inherit version; }; }; - perSystem = { - pkgs, - self', - ... - }: { - package = { - hello = pkgs.callPackage ./derivation.nix {inherit version;}; - default = self'.packages.hello; + perSystem = + { pkgs, self', ... }: + { + package = { + hello = pkgs.callPackage ./derivation.nix { inherit version; }; + default = self'.packages.hello; + }; }; - }; } |
