pkgs/foot-transparent: get source from npins; derieve version from self

This commit is contained in:
raf 2024-07-28 15:42:36 +03:00
commit fe1648a7b1
Signed by: NotAShelf
GPG key ID: AF26552424E53993
3 changed files with 30 additions and 8 deletions

View file

@ -17,9 +17,7 @@
nixpkgs,
flake-parts,
...
} @ inputs: let
pins = import ./npins;
in
} @ inputs:
flake-parts.lib.mkFlake {inherit inputs self;} {
systems = import inputs.systems;
imports = [flake-parts.flakeModules.easyOverlay];
@ -31,7 +29,13 @@
lib,
...
}: let
inherit (builtins) concatStringsSep match;
inherit (lib.attrsets) recursiveUpdate;
inherit (lib.filesystem) packagesFromDirectoryRecursive;
inherit (lib.customisation) callPackageWith;
pins = import ./npins;
date = concatStringsSep "-" (match "(.{4})(.{2})(.{2}).*" self.lastModifiedDate);
in {
_module.args.pkgs = import nixpkgs {
inherit system;
@ -40,7 +44,7 @@
overlayAttrs = config.packages;
packages = packagesFromDirectoryRecursive {
callPackage = lib.callPackageWith (pkgs // {inherit pins;});
callPackage = callPackageWith (recursiveUpdate pkgs {inherit pins date;});
directory = ./pkgs;
};