blair_fix,
@blair_fix@mastodon.online avatar

A few months ago I started using and I was blown away. Then I learned about its design principles and I was even more blown away.

Here's the result: a deep dive into how systems manage software, and how nukes this structure and replaces it with a design fit for the 21st century.

https://economicsfromthetopdown.com/2024/02/17/nixing-technological-lock-in/

AngryAnt, (edited )
@AngryAnt@mastodon.gamedev.place avatar

@blair_fix If you're still considering edits, I would suggest wrapping your python 2/3 hashbang illustration story line with nix-shell hashbang examples. IE:

Python 2:

#!/usr/bin/env nix-shell  
#!nix-shell -i bash -p python2  

Python 3:

#!/usr/bin/env nix-shell  
#!nix-shell -i bash -p python3  

More complex environment description in a companion nix file (maybe more of an appendix thing):

#!/usr/bin/env nix-shell  
#!nix-shell -i bash more-detailed-environment.nix --pure  
AngryAnt,
@AngryAnt@mastodon.gamedev.place avatar
adingbatponder,
@adingbatponder@fosstodon.org avatar

@AngryAnt @blair_fix Sorry to be dim.. but I would like to try this out... but do not know what it does.... any clues welcome... does it go into configuration.nix .... ?

AngryAnt,
@AngryAnt@mastodon.gamedev.place avatar

@adingbatponder @blair_fix Those specific hashbangs go as the first lines of a shell script.

When run on NixOS or nix-enabled macOS/Linux, nix will first resolve an environment with the specified packages available (or to the specifications of the referenced nix file) and then run the script in that environment.

At work we launch all our in-house tools that way - for guaranteed consistent cross-platform dependency resolution. The shell script just goes right in the tool source repository.

adingbatponder,
@adingbatponder@fosstodon.org avatar

@AngryAnt @blair_fix sure thanks, but the untiy-cli-shell thing... what am I looking at there ? does that all go in the configuration.nix ? what does it do...

AngryAnt,
@AngryAnt@mastodon.gamedev.place avatar

@adingbatponder @blair_fix Ah if you check the parent directory there's a utility which scans a Unity editor install path and generates a wrapper script for each version found. Those scripts reference this nix file.

The use case is a TeamCity build agent able to use its default integration to run editors installed via the Unity launcher.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • NixOS
  • slotface
  • kavyap
  • thenastyranch
  • everett
  • tacticalgear
  • rosin
  • Durango
  • DreamBathrooms
  • mdbf
  • magazineikmin
  • InstantRegret
  • Youngstown
  • khanakhh
  • ethstaker
  • JUstTest
  • ngwrru68w68
  • cisconetworking
  • modclub
  • normalnudes
  • osvaldo12
  • cubers
  • GTA5RPClips
  • Leos
  • tester
  • megavids
  • provamag3
  • anitta
  • lostlight
  • All magazines