Package wallpaper-engine-kde-plugin-lib
This commit is contained in:
parent
c8a0f06124
commit
45558c87ae
4 changed files with 139 additions and 1 deletions
32
flake.nix
Normal file
32
flake.nix
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
{
|
||||
description = "Collection of custom Nix packages";
|
||||
|
||||
inputs = {
|
||||
flake-utils.url = "github:numtide/flake-utils";
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||
wallpaper-engine-kde-plugin-lib = {
|
||||
flake = false;
|
||||
url = "git+https://github.com/catsout/wallpaper-engine-kde-plugin?submodules=1";
|
||||
};
|
||||
};
|
||||
|
||||
outputs = inputs@{ self, flake-utils, nixpkgs, ... }:
|
||||
flake-utils.lib.eachDefaultSystem (system:
|
||||
let
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
pkgDefDir = ./packages;
|
||||
pkgDefs = pkgs.lib.attrsets.mapAttrs'
|
||||
(pkgDef: _: {
|
||||
name = builtins.substring 0
|
||||
(
|
||||
builtins.sub (builtins.stringLength pkgDef) 4
|
||||
)
|
||||
pkgDef;
|
||||
value = import (pkgDefDir + "/${pkgDef}") { inherit inputs pkgs; };
|
||||
})
|
||||
(builtins.readDir pkgDefDir);
|
||||
in
|
||||
{
|
||||
packages = pkgDefs;
|
||||
});
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue