I'm trying to use nix flakes for android development.
This is my flake.nix:
{
description = "test";
outputs = { self, nixpkgs }: {
packages.x86_64-linux.hello = nixpkgs.legacyPackages.x86_64-linux.hello;
devShell.x86_64-linux =…
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 import nixpkgs map to code in the nixpkgs flake?
It…
I'm trying to use an external (as in not present in nixpkgs) flake in my home-manager (using nix-darwin) config.
The flake has a default output which is the binary produced by…
I am creating a WordPress plugin but need to connect to Xero's API. Xero suggest using the composer plugin xero-php-oauth2 so I setup my WP plugin to use composer, which works. And I have successfully installed and used phpdotenv as a…
In a file. I have some R files and I have a subdirectory with a "sub application" that calls the R files of the parent directory.
project :
fileR_n.R
subapp_directory
file.R
If file.R were alone this flake.nix would be enough.
{
…
I'm trying to create a flake for the peer to peer web browser, agregore ( https://github.com/AgregoreWeb/agregore-browser ). It's my first flake and I'm having major difficulties.
Here's the full flake, which I have placed in a clone of the above…
this is a continuation of https://discourse.nixos.org/t/can-i-use-flakes-within-a-git-repo-without-committing-flake-nix/18196/37?u=srghma
IF I enable nix flakes
AND I am in the in the git repo
I found the following behavior
IF I do nix build . THEN…
This is the sequel of this question.
I've a bash list of command that generated a file nix directory when these commands are executed.
mkdir nix
rm -fr node_module
node2nix -16 --development --input package.json --lock package-lock.json --node-env…
I'm trying to do this tutorial.
I've added these lines in /etc/nixos/configuration.nix
services.nginx.enable = true;
services.nginx.virtualHosts."test.local.cetacean.club" = {
root = "/srv/http/test.local.cetacean.club";
};
I've made these…
I have a flake containing a dev shell pinning all the dependencies required to develop a given OCaml program, including an actual OCaml compiler, merlin, findlib and the OCaml libraries. For instance, if the project only depended on Graphics, it…
Previously I could nix build a project / derivation with a default.nix file.
However after upgrading to Nixos 22.05, and hence Nix 2.8+ running nix build results in:
path '/example/lib' does not contain a 'flake.nix', searching up
error: path…