Move custom packages
This commit is contained in:
parent
386c68813a
commit
23cc6c99a0
7 changed files with 87 additions and 66 deletions
16
flake-modules/drafts.nix
Normal file
16
flake-modules/drafts.nix
Normal file
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
perSystem =
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
packages.drafts = pkgs.writeShellApplication {
|
||||
name = "drafts";
|
||||
|
||||
runtimeInputs = with pkgs; [ gnugrep ];
|
||||
|
||||
text = ''
|
||||
echo "oob"
|
||||
grep -r 'draft: true' "''${1:-source}"
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue