Questions tagged [nix-flake]

https://nixos.wiki/wiki/Flakes

https://nixos.org/manual/nix/stable/command-ref/new-cli/nix3-flake.html

Differences between channels and flakes: https://www.reddit.com/r/Nix/comments/u1psl5/comment/i4ehod0/?utm_source=share&utm_medium=web2x&context=3

24 questions
1
vote
0 answers

PostgreSQL as buildInput to nix Flake for building a golang project

I have made a nix Flake to build a Golang module. It uses a PostgreSQL database. Is it possible to use flake to install PostgreSQL like this using nix flake. The following code runs and builds the Go module. irmago= buidGoModule { pname =…
raghu
  • 335
  • 4
  • 11
0
votes
1 answer

fetchPypi doesn't fetch the right url to load a .whl file to build a package

I ve followed these instructions (paragraph : build from source): { description = "virtual environment with python and streamlit"; inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; inputs.flake-utils.url =…
0
votes
1 answer

"nix run" works but "nix build" doesn't

{ description = "virtual environment with python and streamlit"; inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; inputs.flake-utils.url = "github:numtide/flake-utils"; outputs = { self, nixpkgs, flake-utils }: …
0
votes
0 answers

How to create a Python executable with nix flake

I have a directory with two files, main.py and flake.nix. flake.nix: { description = "virtual environment with python and streamlit"; inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; inputs.flake-utils.url =…
0
votes
1 answer

How to add a create a a environment with the R package data.table with Nix

{ description = "virtual environment with Rstudio, R, Shiny"; inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; inputs.flake-utils.url = "github:numtide/flake-utils"; outputs = { self, nixpkgs, flake-utils }: …
0
votes
1 answer

nix develop aarch64 flake

I'm trying to write a nix flake that produces a shell to compile a tex project from two different systems: One linux x86_64 and one MacOs aarch64-darwin. I'm quite new to nix and flakes, so I took the example flake given on the nixos wiki "Super…
JM445
  • 168
  • 1
  • 12
0
votes
1 answer

How to install a python package in jupiter server defined with a flake.nix

I want to follow this tutorial on colab. But I don't want to create a google account to execute the code. I've created a jupiter server with nix. flake.nix: { inputs = { nixpkgs = { url = "github:nixos/nixpkgs/nixos-unstable"; }; …
0
votes
1 answer

How to set up local Wordpress development environment using Nix without modifying flakes-based system configuration?

I have NixOS 22.11 set up as on a local workstation. I'm looking for a way to create a customizable and flexible local environment for Wordpress development using Nix. I want the solution to be "ephemeral" (just drop-in config to any directory &…
protob
  • 3,317
  • 1
  • 8
  • 19
0
votes
1 answer

Nix Flake get a specific python version

I am trying to make a Nix flake which will use poetry2nix for building a poetry project the code is { description = "searx : flake"; inputs.nixpkgs.url = github:NixOS/nixpkgs/nixos-20.03; outputs = { self, nixpkgs }: { …
raghu
  • 335
  • 4
  • 11
1
2