feat(grfn/home): Add binding for extracting patch from email
Change-Id: Id568f8b479cebe547e1ad8a309ccfa395bf99b83 Reviewed-on: https://cl.tvl.fyi/c/depot/+/5935 Tested-by: BuildkiteCI Reviewed-by: grfn <grfn@gws.fyi> Autosubmit: grfn <grfn@gws.fyi>
This commit is contained in:
parent
a37f0eed21
commit
539d69f565
3 changed files with 30 additions and 0 deletions
18
users/grfn/pkgs/notmuch-extract-patch.nix
Normal file
18
users/grfn/pkgs/notmuch-extract-patch.nix
Normal file
|
@ -0,0 +1,18 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
let
|
||||
inherit (pkgs) lib;
|
||||
src = pkgs.fetchurl {
|
||||
url = "https://raw.githubusercontent.com/aaptel/notmuch-extract-patch/f732a53e12a7c91a06755ebfab2007adc9b3063b/notmuch-extract-patch";
|
||||
sha256 = "0nawkl04sj7psw6ikzay7kydj3dhd0fkwghcsf5rzaw4bmp4kbax";
|
||||
};
|
||||
|
||||
in
|
||||
pkgs.runCommandNoCC "notmuch-extract-patch"
|
||||
{
|
||||
buildInputs = [ pkgs.python3 ];
|
||||
} ''
|
||||
mkdir -p $out/bin
|
||||
install -m 755 ${src} $out/bin/notmuch-extract-patch
|
||||
patchShebangs $out/bin
|
||||
''
|
Loading…
Add table
Add a link
Reference in a new issue