nix/pkgs/authentik: oops, remove reference to nix store path

This commit is contained in:
Luke Granger-Brown 2022-05-13 22:31:19 +00:00
parent 13d51a7978
commit 5402286846
6 changed files with 14 additions and 22 deletions

View file

@ -1,7 +1,7 @@
{ pkgs, src, version, ... }:
let
nodeComposition = import ./node-composition.nix { inherit pkgs; };
nodeComposition = import ./node-composition.nix { inherit pkgs src; };
in
pkgs.runCommand "authentik-docs-${version}" {
inherit src;

View file

@ -2,7 +2,7 @@
{pkgs ? import <nixpkgs> {
inherit system;
}, system ? builtins.currentSystem, nodejs ? pkgs."nodejs-16_x"}:
}, system ? builtins.currentSystem, nodejs ? pkgs."nodejs-16_x", src}:
let
nodeEnv = import ./node-env.nix {
@ -13,5 +13,5 @@ let
in
import ./node-packages.nix {
inherit (pkgs) fetchurl nix-gitignore stdenv lib fetchgit;
inherit nodeEnv;
inherit nodeEnv src;
}

View file

@ -1,6 +1,6 @@
# This file has been generated by node2nix 1.11.1. Do not edit!
{nodeEnv, fetchurl, fetchgit, nix-gitignore, stdenv, lib, globalBuildInputs ? []}:
{nodeEnv, fetchurl, fetchgit, nix-gitignore, stdenv, lib, globalBuildInputs ? [], src}:
let
sources = {
@ -9630,7 +9630,7 @@ let
name = "authentik-docs";
packageName = "authentik-docs";
version = "0.0.0";
src = ../../../../../../../nix/store/7f906jj83fagr7qli5jx4xq55zqwa7dc-source/website;
src = "${src}/website";
dependencies = [
sources."@algolia/autocomplete-core-1.5.2"
sources."@algolia/autocomplete-preset-algolia-1.5.2"
@ -11058,13 +11058,9 @@ in
nodeDependencies = nodeEnv.buildNodeDependencies (lib.overrideExisting args {
src = stdenv.mkDerivation {
name = args.name + "-package-json";
src = nix-gitignore.gitignoreSourcePure [
"*"
"!package.json"
"!package-lock.json"
] args.src;
inherit (args) src;
dontBuild = true;
installPhase = "mkdir -p $out; cp -r ./* $out;";
installPhase = "mkdir -p $out; cp -r ./package.json ./package-lock.json $out;";
};
});
}

View file

@ -1,7 +1,7 @@
{ pkgs, src, version, ... }:
let
nodeComposition = import ./node-composition.nix { inherit pkgs; };
nodeComposition = import ./node-composition.nix { inherit pkgs src; };
in
pkgs.runCommand "authentik-webui-${version}" {
inherit src;

View file

@ -2,7 +2,7 @@
{pkgs ? import <nixpkgs> {
inherit system;
}, system ? builtins.currentSystem, nodejs ? pkgs."nodejs-16_x"}:
}, system ? builtins.currentSystem, nodejs ? pkgs."nodejs-16_x", src}:
let
nodeEnv = import ./node-env.nix {
@ -13,5 +13,5 @@ let
in
import ./node-packages.nix {
inherit (pkgs) fetchurl nix-gitignore stdenv lib fetchgit;
inherit nodeEnv;
inherit nodeEnv src;
}

View file

@ -1,6 +1,6 @@
# This file has been generated by node2nix 1.11.1. Do not edit!
{nodeEnv, fetchurl, fetchgit, nix-gitignore, stdenv, lib, globalBuildInputs ? []}:
{nodeEnv, fetchurl, fetchgit, nix-gitignore, stdenv, lib, globalBuildInputs ? [], src}:
let
sources = {
@ -6372,7 +6372,7 @@ let
name = "authentik-web";
packageName = "authentik-web";
version = "0.0.0";
src = ../../../../../../../nix/store/7f906jj83fagr7qli5jx4xq55zqwa7dc-source/web;
src = "${src}/web";
dependencies = [
sources."@ampproject/remapping-2.1.1"
sources."@apitools/openapi-parser-0.0.24"
@ -7472,13 +7472,9 @@ in
nodeDependencies = nodeEnv.buildNodeDependencies (lib.overrideExisting args {
src = stdenv.mkDerivation {
name = args.name + "-package-json";
src = nix-gitignore.gitignoreSourcePure [
"*"
"!package.json"
"!package-lock.json"
] args.src;
inherit (args) src;
dontBuild = true;
installPhase = "mkdir -p $out; cp -r ./* $out;";
installPhase = "mkdir -p $out; cp -r ./package.json ./package-lock.json $out;";
};
});
}