This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ pkgs }: | |
pkg: | |
pkgs.runCommand "bundle-${pkg.name}" { | |
nativeBuildInputs = with pkgs; [ coreutils which darwin.binutils darwin.sigtool ]; | |
} '' | |
find '${pkg}/bin' -type f -executable -exec '${./bundle-macos.sh}' '{}' "$out" \; | |
'' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -uo pipefail | |
: "${ALERT_CMD_THRESHOLD_SECONDS:=5}" | |
: "${ALERT_CMD_SUCCESS_SOUND:=glass}" | |
: "${ALERT_CMD_FAIL_SOUND:=sosumi}" | |
if ! which terminal-notifier > /dev/null; then | |
>&2 echo "Install terminal-notifier!" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
class FilterModule(object): | |
def filters(self): | |
return { | |
'mapfunc': self.mapfunc, | |
'applyfunc': self.applyfunc, | |
} | |
def mapfunc(self, items, func_expr_str, *static_args, **static_kwargs): | |
"""Map a Python function over all the inputs. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let | |
nixpkgs = builtins.fetchTarball { | |
url = "https://releases.nixos.org/nixpkgs/nixpkgs-21.11pre313691.ccb19cf7d00/nixexprs.tar.xz"; | |
sha256 = "sha256:10qkfx7p9jy8az1lcbn731nbzwi38228xkxbza0lbmmlwhm8i8jw"; | |
}; | |
in | |
{ nixpkgsFunc ? import nixpkgs | |
, enableRustNativeCpu ? true | |
}: | |
with (nixpkgsFunc { |