tvl-depot/users/aspen/pkgs/notmuch-extract-patch.nix
Aspen Smith 82ecd61f5c chore(users): grfn -> aspen
Change-Id: I6c6847fac56f0a9a1a2209792e00a3aec5e672b9
Reviewed-on: https://cl.tvl.fyi/c/depot/+/10809
Autosubmit: aspen <root@gws.fyi>
Reviewed-by: sterni <sternenseemann@systemli.org>
Tested-by: BuildkiteCI
Reviewed-by: lukegb <lukegb@tvl.fyi>
2024-02-14 19:37:41 +00:00

18 lines
467 B
Nix

{ 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.runCommand "notmuch-extract-patch"
{
buildInputs = [ pkgs.python3 ];
} ''
mkdir -p $out/bin
install -m 755 ${src} $out/bin/notmuch-extract-patch
patchShebangs $out/bin
''