mirror of
https://github.com/NotAShelf/nyxexprs.git
synced 2025-10-05 00:12:10 +00:00
pkgs/foot-transparent: get source from npins; derieve version from self
This commit is contained in:
parent
efa9172cf2
commit
fe1648a7b1
3 changed files with 30 additions and 8 deletions
12
flake.nix
12
flake.nix
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue