Skip to content

Latest commit

 

History

History
29 lines (21 loc) · 754 Bytes

60-exercise-packaging.org

File metadata and controls

29 lines (21 loc) · 754 Bytes

Exercise: building a package

Create a stand-alone builder for a program.

with import <nixpkgs> {};
...
  1. https://github.com/XAMPPRocky/tokei (Rust)
  2. https://github.com/thiderman/doge (Python)
  3. https://dev.yorhel.nl/ncdu (Zig)

Some pointers


  • Select the correct builders: mkDerivation, pythonPackages.buildPythonPackage, rustPlatform.buildRustPackage, …
  • Use TOFU when fetching the source, set the hash and re-run
  • You can define environment variables in the derivation
  • Flail around with your arms until I come help you