This file contains 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
nix develop --command npm run build |
This file contains 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
{ | |
devShells.default = pkgs.mkShell { | |
buildInputs = with pkgs; [ | |
go_1_18 | |
nodePackages.prettier | |
cargo | |
python38 | |
openssl | |
]; | |
}; |
This file contains 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
- name: Prettify repo code | |
uses: creyD/prettier_action@v4.2 | |
with: | |
prettier_options: --write **/*.{js,jsx,ts,tsx} | |
only_changed: true |
This file contains 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
{ | |
description = "Dev env with prettier"; | |
outputs = { self, nixpkgs, flake-utils }: | |
flake-utils.lib.eachDefaultSystem (system: | |
let | |
pkgs = import nixpkgs { inherit system; }; | |
in | |
{ | |
devShells.default = pkgs.mkShell { |
This file contains 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
github:DeterminateSystems/riff/a54624ac12aa2c125d8891d124519fba17aa2016 | |
│├───defaultPackage │ | |
││ ├───aarch64-darwin: package 'riff-1.0.2' │ | |
││ ├───aarch64-linux: package 'riff-1.0.2' │ | |
││ ├───x86_64-darwin: package 'riff-1.0.2' |
This file contains 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
# 🚫 BAD | |
nix run github:kinda-sketch/could-be-a-bitcoin-miner | |
# ✅ BETTER (if you've already vetted the code for this commit) | |
nix run github:kinda-sketch/could-be-a-bitcoin-miner/0a8e7a241db7938b10062218309ba30f6d9f0e2d |
This file contains 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
# Syntax | |
nix run github:<owner>/<repo>/<revision>#<executable> | |
# Examples | |
## Specific commit ID | |
nix run github:DeterminateSystems/riff/a71a8b5ddf680df5db8cc17fa7fddd393ee39ffe | |
## Tag |
This file contains 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
nix run github:omnicorp/runme | |
nix run github:omnicorp/runme#runme # Equivalent to the above | |
nix run github:omnicorp/runme#runme-lint |
This file contains 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
{ | |
description = "runme application"; | |
inputs = { | |
nixpkgs.url = "nixpkgs"; # Resolves to github:NixOS/nixpkgs | |
# Helpers for system-specific outputs | |
flake-utils.url = "github:numtide/flake-utils"; | |
}; | |
outputs = { self, nixpkgs, flake-utils }: |
This file contains 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
{ | |
apps = { | |
# nix run <flake>#server | |
server = { | |
type = "app"; | |
program = "${myPkg}/bin/server"; | |
}; | |
# nix run <flake>#client | |
client = { |