{"repo":"nmattia/niv","free":true,"listed":false,"github":"https://github.com/nmattia/niv","clone":"git clone https://github.com/nmattia/niv.git","description":"Easy dependency management for Nix projects","language":"Haskell","stars":1852,"topics":["nix","package-manager","versioning"],"license":"MIT","category":"dev-tools","readme_excerpt":"niv Painless dependencies for [Nix] projects. Read more in the Getting started section below. Install Build Usage FAQ Install niv is available in nixpkgs as niv : Alternatively, run the following command to install the development version: Build Inside the provided nix shell: Run the test suite with this command: Usage niv simplifies adding and updating dependencies in Nix projects. It uses a single file, nix/sources.json , where it stores the data necessary for fetching and updating the packages. Add: inserts a package in nix/sources.json . Update: updates one or all packages in nix/sources.json . Drop: deletes a package from nix/sources.json . niv has some utility functions: Init: bootstraps a Nix project, in particular creates a nix/sources.json file containing niv and nixpkgs as well as a nix/sources.nix file that returns the sources as a Nix object. Show: shows the packages' information. Modify: modifies attributes without performing an update. Configuration The following environment variables are read by niv : Name Note --------------- ---- GITHUB TOKEN or NIV GITHUB TOKEN When set, the value is used to authenticate GitHub API requests. GITHUB HOST or NIV GITHUB HOST The GitHub host to use when fetching packages. Port may be appended here. GITHUB API HOST or NIV GITHUB API HOST The host used when performing GitHub API requests. Use GITHUB API PORT for specifying the port. GITHUB API PORT or NIV GITHUB API PORT The port used when performing GitHub API requests. Defaults ","default_branch":null,"files":null,"tree":[],"storefront":"/r/nmattia","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/nmattia/niv/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}