0x17, German

If I wanted to add a tool to packages - I have 0,zero knowledge about somethng like this - where would I find a good tutorial about it? :)

adingbatponder,
@adingbatponder@fosstodon.org avatar

@0x17 I am desperate too. I just need ONE example of how to package stuff... but have not found one single one.

grindhold,

@adingbatponder @0x17 my path getting into it was:

  1. think of a package that you know is technologically similar to what you want to package
  2. search in https://github.com/nixos/nixpkgs for that package. entry point is /pkgs/top-level/all.nix, from there you get the path to your desired package
  3. read the default.nix of that package
  4. copy that one and start adapting it to build your source
  5. build the package by being in your nixpkgs checkout and issuing $ nix-env -f . -iA $yourpackagename
fleaz,
@fleaz@chaos.social avatar

@grindhold @adingbatponder @0x17 That's the way 👌

Find something similar, copy/paste the file and change the name, version and the path to the git repo. That's often already a big part of packaging something new :D

Then run build, and iterate on the error messages/missing dependencies

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