diff options
| author | seth <[email protected]> | 2024-07-22 03:27:22 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2024-07-22 03:27:22 -0400 |
| commit | cec5413fcc0ca6b2049efe5a44f3b3fbe6f5f0a1 (patch) | |
| tree | cd34804b4c674a88f1fdbf03a8c4c9a7abe158ef /templates/full/nix/packages.nix | |
| parent | 8160024f34c51057c8c2956113da6a3974d931d6 (diff) | |
templates: modernize
Diffstat (limited to 'templates/full/nix/packages.nix')
| -rw-r--r-- | templates/full/nix/packages.nix | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/templates/full/nix/packages.nix b/templates/full/nix/packages.nix index e48cdde..8774a3b 100644 --- a/templates/full/nix/packages.nix +++ b/templates/full/nix/packages.nix @@ -1,17 +1,13 @@ { self, ... }: -let - version = self.shortRev or self.dirtyShortRev or "unknown"; -in { - flake.overlays.default = _: prev: { - hello = prev.callPackage ./derivation.nix { inherit version; }; - }; - perSystem = { pkgs, self', ... }: { package = { - hello = pkgs.callPackage ./derivation.nix { inherit version; }; + hello = pkgs.callPackage ./derivation.nix { + version = self.shortRev or self.dirtyShortRev or "unknown"; + }; + default = self'.packages.hello; }; }; |
