move flake-parts into pkgs or toplevel
This commit is contained in:
26
pkgs/tea-create-pr/default.nix
Normal file
26
pkgs/tea-create-pr/default.nix
Normal file
@@ -0,0 +1,26 @@
|
||||
{
|
||||
perSystem =
|
||||
{ pkgs
|
||||
, ...
|
||||
}:
|
||||
let
|
||||
name = builtins.baseNameOf ./.;
|
||||
script = pkgs.writeShellApplication {
|
||||
inherit name;
|
||||
runtimeInputs = [
|
||||
pkgs.bash
|
||||
pkgs.coreutils
|
||||
pkgs.git
|
||||
pkgs.tea
|
||||
pkgs.openssh
|
||||
];
|
||||
text = ''
|
||||
export EDITOR=${pkgs.vim}/bin/vim
|
||||
bash ${./script.sh} "$@"
|
||||
'';
|
||||
};
|
||||
in
|
||||
{
|
||||
packages.${name} = script;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user