mirror of
https://github.com/hsjobeki/noogle.git
synced 2024-12-26 15:34:25 +03:00
chore: add export of language.json for nix builtins
This commit is contained in:
parent
d384822c98
commit
a2f170cf94
@ -1,10 +1,13 @@
|
|||||||
{
|
{
|
||||||
description = "Noogle.dev | Discover the nix api surface";
|
description = "Noogle.dev | Discover the nix api surface";
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "nixpkgs/nixos-unstable";
|
# --- sources of documentation ---
|
||||||
|
# Updated automatically
|
||||||
nixpkgs-master.url = "nixpkgs/master";
|
nixpkgs-master.url = "nixpkgs/master";
|
||||||
|
|
||||||
nix-master.url = "github:NixOS/nix/?ref=master";
|
nix-master.url = "github:NixOS/nix/?ref=master";
|
||||||
|
|
||||||
|
# --- Other flake inputs ---
|
||||||
|
nixpkgs.url = "nixpkgs/nixos-unstable";
|
||||||
# A custom nix version, to introspect lambda values.
|
# A custom nix version, to introspect lambda values.
|
||||||
nix.url = "github:hsjobeki/nix/?ref=feat/positions";
|
nix.url = "github:hsjobeki/nix/?ref=feat/positions";
|
||||||
|
|
||||||
|
@ -2,6 +2,8 @@
|
|||||||
perSystem = { self', inputs', pkgs, ... }:
|
perSystem = { self', inputs', pkgs, ... }:
|
||||||
let
|
let
|
||||||
nix-manual = "${inputs.nix-master}/doc/manual/src/language/derivations.md";
|
nix-manual = "${inputs.nix-master}/doc/manual/src/language/derivations.md";
|
||||||
|
inherit (inputs'.nix-master.packages) nix;
|
||||||
|
|
||||||
# https://github.com/NixOS/nix/blob/master/doc/manual/src/language/derivations.md
|
# https://github.com/NixOS/nix/blob/master/doc/manual/src/language/derivations.md
|
||||||
salt = pkgs.stdenv.mkDerivation {
|
salt = pkgs.stdenv.mkDerivation {
|
||||||
pname = "salt-data";
|
pname = "salt-data";
|
||||||
@ -11,6 +13,8 @@
|
|||||||
mkdir $out
|
mkdir $out
|
||||||
cp -rf . $out
|
cp -rf . $out
|
||||||
cp ${nix-manual} $out
|
cp ${nix-manual} $out
|
||||||
|
|
||||||
|
${nix}/bin/nix __dump-language > $out/language.json
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
|
Loading…
Reference in New Issue
Block a user