remove dead code (run deadnix)
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
{
|
||||
lua
|
||||
, nellie
|
||||
{ nellie
|
||||
, writeFennel
|
||||
, anoia
|
||||
, fennel
|
||||
|
@@ -1,9 +1,4 @@
|
||||
{
|
||||
runCommand
|
||||
, runtimeShell
|
||||
, fetchurl
|
||||
, lib
|
||||
, luaPackages
|
||||
{ lib
|
||||
, lua
|
||||
, lualinux
|
||||
, writeScriptBin
|
||||
|
@@ -7,8 +7,8 @@ name : ruleset :
|
||||
let
|
||||
inherit (lib.strings) concatStringsSep splitString hasInfix substring;
|
||||
inherit (lib.lists) groupBy;
|
||||
inherit (lib.attrsets) mapAttrsToList nameValuePair;
|
||||
inherit (builtins) map listToAttrs replaceStrings head tail;
|
||||
inherit (lib.attrsets) mapAttrsToList;
|
||||
inherit (builtins) map head tail;
|
||||
|
||||
indentLines = offset : lines :
|
||||
if lines == []
|
||||
@@ -31,7 +31,7 @@ let
|
||||
|
||||
indent = text : indentLines 0 (splitString "\n" text);
|
||||
|
||||
dochain = { name, type, family, rules,
|
||||
dochain = { name, type, rules,
|
||||
policy ? null,
|
||||
priority ? "filter",
|
||||
hook ? null } : ''
|
||||
|
@@ -1,6 +1,4 @@
|
||||
{
|
||||
lua
|
||||
, netlink-lua
|
||||
{ netlink-lua
|
||||
, writeFennelScript
|
||||
, runCommand
|
||||
, anoia
|
||||
|
@@ -3,9 +3,7 @@
|
||||
, python2
|
||||
, which
|
||||
, fetchgit
|
||||
, fetchpatch
|
||||
, fetchFromGitHub
|
||||
, autoreconfHook
|
||||
, coccinelle
|
||||
}:
|
||||
let
|
||||
|
@@ -1,6 +1,5 @@
|
||||
{ stdenv
|
||||
, buildPackages
|
||||
, runCommand
|
||||
, writeText
|
||||
, lib
|
||||
|
||||
|
@@ -1,7 +1,4 @@
|
||||
{
|
||||
stdenv
|
||||
, busybox
|
||||
, buildPackages
|
||||
{ buildPackages
|
||||
, callPackage
|
||||
, pseudofile
|
||||
, runCommand
|
||||
|
@@ -1,14 +1,11 @@
|
||||
{
|
||||
stdenvNoCC
|
||||
, s6-rc
|
||||
, s6
|
||||
, lib
|
||||
, callPackage
|
||||
, writeScript
|
||||
, serviceFns
|
||||
}:
|
||||
let
|
||||
inherit (builtins) concatStringsSep any map;
|
||||
prefix = "/run/services/outputs";
|
||||
output = service: name: "${prefix}/${service.name}/${name}";
|
||||
serviceScript = commands : ''
|
||||
@@ -28,7 +25,6 @@ let
|
||||
, up ? null
|
||||
, down ? null
|
||||
, finish ? null
|
||||
, outputs ? []
|
||||
, notification-fd ? null
|
||||
, producer-for ? null
|
||||
, consumer-for ? null
|
||||
@@ -40,7 +36,7 @@ let
|
||||
, buildInputs ? []
|
||||
, restart-on-upgrade ? false
|
||||
, controller ? null
|
||||
} @ args:
|
||||
}:
|
||||
stdenvNoCC.mkDerivation {
|
||||
# we use stdenvNoCC to avoid generating derivations with names
|
||||
# like foo.service-mips-linux-musl
|
||||
@@ -55,9 +51,7 @@ let
|
||||
longrun = {
|
||||
name
|
||||
, run
|
||||
, outputs ? []
|
||||
, notification-fd ? null
|
||||
, dependencies ? []
|
||||
, buildInputs ? []
|
||||
, ...
|
||||
} @ args:
|
||||
@@ -81,8 +75,6 @@ let
|
||||
name
|
||||
, up
|
||||
, down ? ""
|
||||
, outputs ? []
|
||||
, dependencies ? []
|
||||
, ...
|
||||
} @ args : service (args // {
|
||||
serviceType = "oneshot";
|
||||
@@ -91,9 +83,7 @@ let
|
||||
"${name}-down"
|
||||
"${serviceScript down}\n${cleanupScript name}";
|
||||
});
|
||||
bundle = {
|
||||
name
|
||||
, contents ? []
|
||||
bundle = { contents ? []
|
||||
, dependencies ? []
|
||||
, ...
|
||||
} @ args: service (args // {
|
||||
|
@@ -1,4 +1,4 @@
|
||||
{ lua, lib, fetchFromGitHub }:
|
||||
{ lua, fetchFromGitHub }:
|
||||
let pname = "linotify";
|
||||
in lua.pkgs.buildLuaPackage {
|
||||
inherit pname;
|
||||
|
@@ -1,4 +1,4 @@
|
||||
{ lua, lib, fetchFromGitHub }:
|
||||
{ lua, fetchFromGitHub }:
|
||||
let
|
||||
pname = "lualinux";
|
||||
src = fetchFromGitHub {
|
||||
|
@@ -22,7 +22,7 @@ let
|
||||
rev = "a5265497a4f6da158e95d6a450cb2cb6dc085cab";
|
||||
hash = "sha256-YYi4gkpLjbOK7bM2MGQjAyEBuXJ9JNXoz/JEmYf8xE8=";
|
||||
};
|
||||
inherit (liminix.services) oneshot longrun;
|
||||
inherit (liminix.services) oneshot;
|
||||
inherit (lib.lists) foldl;
|
||||
configs = {
|
||||
ath9k.kconfig = {
|
||||
|
@@ -1,12 +1,8 @@
|
||||
{
|
||||
stdenv
|
||||
, nix
|
||||
, cpio
|
||||
, openssh
|
||||
}: stdenv.mkDerivation {
|
||||
name = "min-collect-garbage";
|
||||
buildInputs = [ ];
|
||||
# propagatedBuildInputs = [ openssh ];
|
||||
src = ./.;
|
||||
makeFlags = [ "min-list-garbage" ];
|
||||
installPhase = ''
|
||||
|
@@ -1,4 +1,4 @@
|
||||
{ lua, lib, fetchFromGitHub }:
|
||||
{ lua, fetchFromGitHub }:
|
||||
let
|
||||
pname = "minisock";
|
||||
src = fetchFromGitHub {
|
||||
|
@@ -1,4 +1,4 @@
|
||||
{ lua, lib, fetchpatch, fetchFromGitHub, stdenv }:
|
||||
{ lua, stdenv }:
|
||||
|
||||
let pname = "nellie";
|
||||
in lua.pkgs.buildLuaPackage {
|
||||
|
@@ -1,4 +1,4 @@
|
||||
{ lua, lib, fetchpatch, fetchFromGitHub, libmnl }:
|
||||
{ lua, fetchFromGitHub, libmnl }:
|
||||
let pname = "netlink";
|
||||
in lua.pkgs.buildLuaPackage {
|
||||
inherit pname;
|
||||
|
@@ -1,7 +1,6 @@
|
||||
{
|
||||
writeFennelScript
|
||||
, anoia
|
||||
, lua
|
||||
, lualinux
|
||||
}:
|
||||
writeFennelScript "odhcpc-script" [anoia lualinux] ./odhcp6-script.fnl
|
||||
|
@@ -1,5 +1,4 @@
|
||||
{ stdenv
|
||||
, buildPackages
|
||||
, cmake
|
||||
, fetchFromGitHub
|
||||
, ...} :
|
||||
|
@@ -1,6 +1,5 @@
|
||||
{
|
||||
fetchFromGitHub
|
||||
, writeShellScript
|
||||
, pkgsBuildBuild
|
||||
}:
|
||||
let
|
||||
|
@@ -2,8 +2,6 @@
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, ppp } :
|
||||
let
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "rp-pppoe";
|
||||
version = "3.15";
|
||||
|
@@ -1,14 +1,7 @@
|
||||
{
|
||||
stdenv
|
||||
, fetchzip
|
||||
, gdb
|
||||
}:
|
||||
let kernel = fetchzip {
|
||||
name = "linux";
|
||||
url = "https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.15.71.tar.gz";
|
||||
hash = "sha256-pq6QNa0PJVeheaZkuvAPD0rLuEeKrViKk65dz+y4kqo=";
|
||||
};
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
name = "preinit";
|
||||
src = ./.;
|
||||
|
@@ -1,7 +1,6 @@
|
||||
{
|
||||
lua5_3
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, makeWrapper
|
||||
} :
|
||||
let
|
||||
|
@@ -1,9 +1,6 @@
|
||||
{
|
||||
lua
|
||||
, nellie
|
||||
{ nellie
|
||||
, lualinux
|
||||
, writeFennel
|
||||
, runCommand
|
||||
, anoia
|
||||
, fennel
|
||||
, stdenv
|
||||
|
@@ -1,8 +1,4 @@
|
||||
{
|
||||
lua
|
||||
, lib
|
||||
, fennel
|
||||
, writeFennel
|
||||
{ writeFennel
|
||||
, stdenv
|
||||
}:
|
||||
name : packages : source :
|
||||
|
@@ -9,7 +9,7 @@ name :
|
||||
packages ? [],
|
||||
correlate ? false,
|
||||
mainFunction ? null
|
||||
} @ options : source :
|
||||
} : source :
|
||||
let
|
||||
luapath = builtins.map
|
||||
(f:
|
||||
|
Reference in New Issue
Block a user