mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-04 15:00:13 +01:00
feat: adds wikit to overlay
This commit is contained in:
parent
4ac5f4d4d5
commit
1afa5e23e7
2 changed files with 20 additions and 12 deletions
|
|
@ -1,12 +1,4 @@
|
||||||
rec{
|
{ pkgs } :
|
||||||
overlay = final: prev:
|
{
|
||||||
let
|
wikit = pkgs.callPackage ./wikit/default.nix { };
|
||||||
dirContents = builtins.readDir ../pkgs;
|
}
|
||||||
genPackage = name: {
|
|
||||||
inherit name;
|
|
||||||
value = final.callPackage (../pkgs + "/${name}") { };
|
|
||||||
};
|
|
||||||
names = builtins.attrNames dirContents;
|
|
||||||
in
|
|
||||||
builtins.listToAttrs (map genPackage names);
|
|
||||||
}
|
|
||||||
|
|
|
||||||
16
pkgs/wikit/default.nix
Normal file
16
pkgs/wikit/default.nix
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
{ lib, ... }:
|
||||||
|
with lib;
|
||||||
|
let
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "owner";
|
||||||
|
repo = "repo";
|
||||||
|
rev = "";
|
||||||
|
};
|
||||||
|
in {
|
||||||
|
wikit = mkYarnPackage {
|
||||||
|
name = "wikit";
|
||||||
|
inherit src;
|
||||||
|
packageJSON = src + "./package.json";
|
||||||
|
yarnLock = src + "./yarn.lock";
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue