From 920eaf6bba0f6555c97ded93f59a7389dc6d6362 Mon Sep 17 00:00:00 2001 From: h7x4 Date: Tue, 12 Apr 2022 02:50:53 +0200 Subject: [PATCH] Add infrastructure for my own packaging --- flake.nix | 2 ++ pkgs/default.nix | 5 +++++ 2 files changed, 7 insertions(+) create mode 100644 pkgs/default.nix diff --git a/flake.nix b/flake.nix index 5958152..7bb0d5c 100644 --- a/flake.nix +++ b/flake.nix @@ -79,6 +79,8 @@ lib = (pkgs.extend self.overlays.lib).lib; + packages.${system} = import ./pkgs { inherit pkgs; }; + homeConfigurations = { h7x4 = home-manager.lib.homeManagerConfiguration { inherit system; diff --git a/pkgs/default.nix b/pkgs/default.nix new file mode 100644 index 0000000..4a8ce6b --- /dev/null +++ b/pkgs/default.nix @@ -0,0 +1,5 @@ +{ pkgs ? import {} }: let + call = pkg: { name = pkg; value = pkgs.callPackage ./${pkg} {}; }; +in builtins.listToAttrs (map call [ + # TODO: Add some packages +])