summaryrefslogtreecommitdiff
path: root/parts/packages.nix
diff options
context:
space:
mode:
authorseth <[email protected]>2023-11-15 03:37:38 -0500
committerseth <[email protected]>2023-11-16 00:15:23 +0000
commitea3b523a37d22e67eaf5019bb8a661a60e82cc31 (patch)
treea8a43a617f5a815ad56f81a89578fe5fc05bfcc1 /parts/packages.nix
parent928d1ab5caa5ad1f6e22a869686c77626e53e7e0 (diff)
flake: use naersk to build cross arch docker images
Diffstat (limited to 'parts/packages.nix')
-rw-r--r--parts/packages.nix18
1 files changed, 13 insertions, 5 deletions
diff --git a/parts/packages.nix b/parts/packages.nix
index 852db09..c4113c1 100644
--- a/parts/packages.nix
+++ b/parts/packages.nix
@@ -1,13 +1,21 @@
-{self, ...}: {
+{
+ self,
+ inputs,
+ ...
+}: {
perSystem = {
pkgs,
- self',
+ system,
+ config,
...
}: {
packages = {
- teawiebot = pkgs.callPackage ./derivation.nix {inherit self;};
- teawiebot-smol = self'.packages.teawiebot.override {optimizeSize = true;};
- default = self'.packages.teawiebot;
+ teawiebot = pkgs.callPackage ./derivation.nix {
+ version = builtins.substring 0 8 self.lastModifiedDate or "dirty";
+ naersk = inputs.naersk.lib.${system};
+ };
+
+ default = config.packages.teawiebot;
};
};
}