Nix derivations explained | Unleash the full potential of NixOS

แชร์
ฝัง
  • เผยแพร่เมื่อ 7 ส.ค. 2023
  • Discord server: / discord
    All code from the video: github.com/vimjoyer/nix-deriv...

ความคิดเห็น • 43

  • @unknown-otter
    @unknown-otter 11 หลายเดือนก่อน +20

    Another comment just for the yt algorithm! Thank you for your work!

    • @vimjoyer
      @vimjoyer  11 หลายเดือนก่อน +3

      Thanks!

    • @unknown-otter
      @unknown-otter 11 หลายเดือนก่อน +3

      Pardon me, I'm just curious, are you from CIS countries? Your accent sounds familiar to me (well, I'm from Russia)

    • @vimjoyer
      @vimjoyer  11 หลายเดือนก่อน +7

      @@unknown-otter I'm from Ukraine

  • @hotdog2c
    @hotdog2c 11 หลายเดือนก่อน +7

    Awesome explanation! loving the nix videos!

  • @Gaivs
    @Gaivs 11 หลายเดือนก่อน +9

    I'm so glad I found this channel, great explanations for something I know I've wanted to learn for a long time!

    • @_modiX
      @_modiX 11 หลายเดือนก่อน

      I'm so happy for that as well. The documentation is vast, but shallow, with many sources to learn from. It's nice to have someone condense all the necessary information to get learn how to do specific things with very easy examples.

  • @BartekBroniszewski
    @BartekBroniszewski 11 หลายเดือนก่อน +4

    Awesome as always! It is like Nix inception, you wrap your binary in a wrapper of a wrapper...yes and then we have cowsay. I totally got it.

    • @vimjoyer
      @vimjoyer  11 หลายเดือนก่อน +1

      Haha, yes.

  • @lamprospitsillou6325
    @lamprospitsillou6325 11 หลายเดือนก่อน +4

    I am running Nixos-install as we speak, keep up the amazing work , thank you!

  • @AppsTricksByNazakatUmrani
    @AppsTricksByNazakatUmrani หลายเดือนก่อน +2

    ManI love what you are doing for the community, no one can thank you enough for your work, I don't know what to say

  • @dillon4248
    @dillon4248 11 หลายเดือนก่อน +6

    Awesome! Still working on getting use to nix to switch to it as my daily driver. Really interested in seeing more on how to build projects and push to the nix package manager for my own projects and projects I find that are not in the nix package manager yet

  • @mr.tm-yt
    @mr.tm-yt 11 หลายเดือนก่อน +5

    Great video as always

  • @infernocop31
    @infernocop31 11 หลายเดือนก่อน +3

    You are incredible. Keep it up

  • @DooMWhite
    @DooMWhite 28 วันที่ผ่านมา +1

    Amazing content, just what I wanted to understand.

    • @DooMWhite
      @DooMWhite 27 วันที่ผ่านมา

      Just a thing, I tried using cp $src/hello-world, but that didn't work, cuz cp needed "" in the source part, how do I fix that? I tried using "$src/hello-world" and "${src}/hello-world", but that wouldn't work.

  • @mawfyy7001
    @mawfyy7001 11 หลายเดือนก่อน +2

    LETS GOOO

  • @fulsomenko
    @fulsomenko 11 หลายเดือนก่อน +1

    great stuff

  • @MrPielover19
    @MrPielover19 11 หลายเดือนก่อน +1

    hype

  • @johannesCmayer
    @johannesCmayer 3 หลายเดือนก่อน +1

    You forgot to add this to the nix playlist iirc.

    • @vimjoyer
      @vimjoyer  3 หลายเดือนก่อน +1

      Done, thanks

  • @evgen4681
    @evgen4681 11 หลายเดือนก่อน +1

    Спасибо за такие классные видео! Можешь, пожалуйста, рассказать про создание единого окружения разработки (как я понял, для этого используют nix develop или nix shell). Мой самый главный вопрос в том, что там по умолчанию используется bash, но я хотел бы использовать свой конфиг zsh (это уже не nix way?).

    • @vimjoyer
      @vimjoyer  11 หลายเดือนก่อน +2

      Да, я планирую сделать видео про Nix shell & Nix develop, а запускать их с zsh совсем несложно. Там можно указать shell-hook, который запустит нужную программу, включая любые оболочки.
      Так как по умолчанию все переменные из окружения пользователя сохряняются при входе в nix shell, .zshrc тоже будет там работать.

    • @dillon4248
      @dillon4248 11 หลายเดือนก่อน +1

      Also interested in nix develop for my projects (:

  • @MARKHENSTROM
    @MARKHENSTROM 11 หลายเดือนก่อน +1

    Is there an algorithm that will make the end-user not spend copious amounts of time clicking cat-related videos on TH-cam - thereby ruining my productivity?

    • @vimjoyer
      @vimjoyer  11 หลายเดือนก่อน +1

      If you find one, tell me).

  • @zperk13
    @zperk13 2 หลายเดือนก่อน

    How does it know what g++ is? Why did you not have to define it in the buildInputs or i guess the nativeBuildInputs

  • @sachinchaudhary1310
    @sachinchaudhary1310 5 หลายเดือนก่อน +2

    b;eh comment just for the algorithm baba bleh

  • @DooMWhite
    @DooMWhite 6 วันที่ผ่านมา +1

    I tried splitting the default.nix to 3 files, one for each case, but for some reason, I get an error that those files don't exist, only default.nix works, do you know why?

    • @vimjoyer
      @vimjoyer  6 วันที่ผ่านมา +1

      If you are using git, make sure to git add them. Flakes don't see unstaged files.

    • @DooMWhite
      @DooMWhite 6 วันที่ผ่านมา

      @@vimjoyer That was the issue, ty!

  • @SantiagoFraire
    @SantiagoFraire 11 หลายเดือนก่อน +1

    How does nix know which commands to run from the Makefile?

    • @vimjoyer
      @vimjoyer  11 หลายเดือนก่อน

      you can find all the logic here: github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/make-derivation.nix.

  • @sharperguy
    @sharperguy 3 หลายเดือนก่อน

    Why do you import default.nix rather than using callPackage?

    • @vimjoyer
      @vimjoyer  3 หลายเดือนก่อน

      Yeah, callPackage is preferred.

  • @rotteegher39
    @rotteegher39 11 หลายเดือนก่อน +2

    What about you rename your channel to nixjoyer instead of vimjoyer ? xD

    • @vimjoyer
      @vimjoyer  11 หลายเดือนก่อน

      I'd have to change avatar too

    • @rotteegher39
      @rotteegher39 11 หลายเดือนก่อน +1

      why not then @@vimjoyer

    • @vimjoyer
      @vimjoyer  11 หลายเดือนก่อน +1

      @@rotteegher39 I don't care about the name much, but some people like this one, and I wont just be making nix videos here.

    • @rotteegher39
      @rotteegher39 11 หลายเดือนก่อน +1

      respect +++ @@vimjoyer

  • @_modiX
    @_modiX 11 หลายเดือนก่อน +2

    I've seen some packages coming with a flake.nix in their repository. Could you please show in a video how to have a project with a flake.nix instead and how it is properly consumed on my own flake.nix? You are a good teacher btw. :)