nix Questions
3
I've installed PostgreSQL:
nix-env -iA nixos.postgresql
Now when I use psql, I get:
psql: error: connection to server on socket "/run/postgresql/.s.PGSQL.5432" failed: No such file or d...
Pannonia asked 9/12, 2022 at 11:22
4
I'm trying to enable allow "unfree" packages, either globally or per-package, when using MyNixOS (excellent Flake configuration app for Nix) with Nix Flakes on Mac OS.
When trying to inst...
Krems asked 1/12, 2023 at 12:21
4
When trying to revive old projects, sometimes I have to fish around for older Nixpkgs commits to get things started.
For example, most of my shell.nix files start like this,
{pkgs ? import <nixp...
2
Solved
There are libraries such as gitrev, which allows to compile in git revision into executable file, but in case of using nix-build http://../master git meta data are missing in the source tree.
How t...
3
Solved
I have a single Python script called myscript.py and would like to package it up as a nix derivation with mkDerivation.
The only requirement is that my Python script has a run-time dependency, say...
Oliverolivera asked 7/5, 2017 at 23:13
6
Solved
After some time, I am starting to run out of disk space in my development machine (only 128GB). For this reason, I have decided to move local cache stores (.npm, .m2, .ivy2, etc.) to an external dr...
Doan asked 24/3, 2015 at 15:41
2
Solved
I want to schedule a job from wsl. The job will need to be run in the nix-shell and then in the python virtual environment under Nix-shell. I try to do this by writing a shell script, run ./enter.s...
Ellmyer asked 29/10, 2020 at 20:29
3
when developing in nix i usually use builtins.trace for debugging:
in code
a = { foo = "bar"; ... more complex nested attrset ...};
builtins.trace a a;
in nix-repl
using :p a on a complex data...
1
Solved
My flake.nix in /etc/nixos directory:
{
description = "A very basic flake";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-23.11";
home-manager = {
url = "githu...
Dimity asked 14/12, 2023 at 15:58
2
Solved
I've run into these issues a few times, and have yet to find a solution. My environment has Xcode Command-Line tools installed, but since installing Nix, Clang has been having a difficult time loca...
Sucy asked 7/11, 2021 at 3:22
3
Solved
I know that I can search for Haskell packages with nix-env by using
nix-env -f '<nixpkgs>' -qaP -A haskellPackages name_of_package
but that is slow and uncached. If I try to use the new c...
2
Need help getting node-canvas installed with on an M1 mac. Here is the log.
yarn install
...
➤ YN0000: ┌ Link step
➤ YN0007: │ canvas@npm:2.10.1 must be built because it never has been before or t...
Gregggreggory asked 28/10, 2022 at 18:15
1
In my .nix file I have packages foo and bar, with bar depending on foo:
let
haskellPackages = reflex-platform.ghcjs.override {
overrides = self: super: {
foo =
pkgs.haskell.lib.dontCheck
(pkg...
1
I have some files in a folder that I want to create a derivation out of to pass them as inputs to dockerTools.buildImage later.
I'm not sure how to do this. This doesn't work:
database = pkgs.stden...
3
Solved
I was trying to run a Nix command to build a project:
nix build -f default.nix plutus.haskell.packages.plutus-core.components.library
and I received this error!
error: attribute 'aarch64-darwin' m...
Soloman asked 19/8, 2021 at 21:8
2
Solved
I've installed Nix into an Ubuntu WSL installation.
I now want to uninstall it.
The manual states to simply "rm -rf /nix".
Nix adds itself to $PATH and the manual makes mention of a Nix daemon.
...
Diametrically asked 20/8, 2018 at 11:8
3
I've used sh <(curl -L https://nixos.org/nix/install) --daemon to install Nix.
After installation completed run nix-shell -p nix-info --run "nix-info -m" to verify the installation.
It...
Savonarola asked 29/7, 2022 at 9:33
2
Like in this tutorial I want to see the derivation.
ls /nix/store/*.drv | head -n 1 | nix show-derivation
experimental Nix feature 'nix-command' is disabled; use '--extra-experimental-features n...
Narcotism asked 17/12, 2022 at 10:46
3
Solved
Found a lot of sources describing callPackage and some of its internals, but none that refers to it's location. It's like the best kept secret of Nix, and the manuals even seem to be actively avoid...
1
Solved
I have restart on WSL my installation from scratch:
wsl --unregister Nixos
wsl --import NixOS .\NixOS\ nixos-wsl-installer.tar.gz --version 2
wsl -s Nixos
wsl
nixos-wsl-installer.tar.gz comes ...
2
I'm trying to override a python package (uvloop) globally, in nix, such that black sees the override.
uvloop (python package) tests fail for me because I'm working behind a firewall. I can build th...
1
Solved
I'm working to understand as much as I can about Nix flakes. I'm puzzled by the fact that a nixpkgs input is usually imported, and the imported value is called as a function. How does the result of...
3
In the manual it is written :
The command nix-instantiate generates store derivations from
(high-level) Nix expressions.
But what are store derivations ?
The manual says the following about...
3
after the installation following the instructions with
curl https://nixos.org/nix/install | sh
and logout/login, nix-env and nix-build are not found.
I had the problem with debian stretch and ...
Ingres asked 8/1, 2019 at 7:46
2
Solved
I'm wondering how to install the psql command on NixOS. To be clear: I'm only interested in the client, not the server.
I've looked at the derivation but couldn't find any pointers.
Is there a wa...
Ulmaceous asked 13/9, 2018 at 20:56
1 Next >
© 2022 - 2025 — McMap. All rights reserved.