Sign inSign up

ui3o/nixpacker

By ui3o

•Updated 8 months ago

Image
0

3.8K

ui3o/nixpacker repository overview

⁠nixpacker

Build nix package into docker image

⁠install

  • install nip:
    podman run -it --rm -v $HOME:/root:Z -v /nix:/nix:Z ui3o/nixpacker:nip
    
  • add nip to path:
    export PATH="/nix/store/nip:$HOME/.nip/warehouse/nip:$PATH"
    

⁠build steps

⁠usage

  • edit file in
    ~/.config/nip/config.py
    
  • run
    nip
    
  • recommended warehouse browsing
    ls -1 ~/.nip/warehouse | fzf
    

original:

  • /nix/store/item-a =use=> /nix/store/item-b

new:

  • /nix/store/item-a =linked=> /nix/warehouse/item-a =use=> /nix/store/item-b =linked=> /nix/warehouse/item-b

generation:

  • /nix/store =linked=> /nix/generations/checksum/store

default override:

  • /nix/store/item-a-v2 =linked=> /nix/store/item-a-v1
  • /nix/store/item-a-v1 =linked=> /nix/warehouse/item-a

Tag summary

Content type

Image

Digest

sha256:6346c911f…

Size

6.8 MB

Last updated

about 1 year ago

docker pull ui3o/nixpacker