mirror of
https://codeberg.org/puppe/financier-nix.git
synced 2025-12-20 08:22:18 +01:00
Add nix flake support
With this commit, we add nix flake support. Flakes are evaluated in pure evaluation mode. The script generate.sh does not work in pure evaluation mode since it node2nix fetches itself resources from the network. In order to enable pure evaluation, we add the generated nix files to this repository.
This commit is contained in:
parent
c0fd2b96a5
commit
8c56307c55
10 changed files with 17547 additions and 7 deletions
21
node2nix.nix
Normal file
21
node2nix.nix
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
# This file has been generated by node2nix 1.9.0. Do not edit!
|
||||
|
||||
{pkgs ? import <nixpkgs> {
|
||||
inherit system;
|
||||
}, system ? builtins.currentSystem, nodejs ? pkgs."nodejs-12_x"}:
|
||||
|
||||
let
|
||||
globalBuildInputs = pkgs.lib.attrValues (import ./supplement.nix {
|
||||
inherit nodeEnv;
|
||||
inherit (pkgs) stdenv lib nix-gitignore fetchurl fetchgit;
|
||||
});
|
||||
nodeEnv = import ./node-env.nix {
|
||||
inherit (pkgs) stdenv lib python2 runCommand writeTextFile;
|
||||
inherit pkgs nodejs;
|
||||
libtool = if pkgs.stdenv.isDarwin then pkgs.darwin.cctools else null;
|
||||
};
|
||||
in
|
||||
import ./node-packages.nix {
|
||||
inherit (pkgs) fetchurl nix-gitignore stdenv lib fetchgit;
|
||||
inherit nodeEnv globalBuildInputs;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue