Skip to content

Instantly share code, notes, and snippets.

@srhb
Created September 3, 2019 17:32
Show Gist options
  • Save srhb/2c998c10abd87a515aafccd19dc9e3fa to your computer and use it in GitHub Desktop.
Save srhb/2c998c10abd87a515aafccd19dc9e3fa to your computer and use it in GitHub Desktop.
let
overlay = self: super: {
howdy = super.runCommand "howdy" {} ''
mkdir -p $out/bin
${self.bbe}/bin/bbe -e \
's/Hello/Howdy/' \
${super.hello}/bin/hello \
> $out/bin/howdy
chmod u+x $out/bin/howdy
'';
};
in
{ pkgs ? import <nixpkgs> { overlays = [overlay]; } }:
pkgs.howdy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment