Merge branch 'master' into staging-next

This commit is contained in:
Jan Tojnar 2021-03-03 19:47:08 +01:00
commit 9bfe3b3e41
No known key found for this signature in database
GPG Key ID: 7FAB2A15F7A607A4
130 changed files with 930 additions and 482 deletions

View File

@ -3071,6 +3071,12 @@
githubId = 1276854; githubId = 1276854;
name = "Florian Peter"; name = "Florian Peter";
}; };
fbrs = {
email = "yuuki@protonmail.com";
github = "cideM";
githubId = 4246921;
name = "Florian Beeres";
};
fdns = { fdns = {
email = "fdns02@gmail.com"; email = "fdns02@gmail.com";
github = "fdns"; github = "fdns";

View File

@ -16,9 +16,10 @@
The first line (<literal>{ config, pkgs, ... }:</literal>) denotes that this The first line (<literal>{ config, pkgs, ... }:</literal>) denotes that this
is actually a function that takes at least the two arguments is actually a function that takes at least the two arguments
<varname>config</varname> and <varname>pkgs</varname>. (These are explained <varname>config</varname> and <varname>pkgs</varname>. (These are explained
later.) The function returns a <emphasis>set</emphasis> of option definitions later, in chapter <xref linkend="sec-writing-modules" />) The function returns
(<literal>{ <replaceable>...</replaceable> }</literal>). These definitions a <emphasis>set</emphasis> of option definitions (<literal>{
have the form <literal><replaceable>name</replaceable> = <replaceable>...</replaceable> }</literal>). These definitions have the form
<literal><replaceable>name</replaceable> =
<replaceable>value</replaceable></literal>, where <replaceable>value</replaceable></literal>, where
<replaceable>name</replaceable> is the name of an option and <replaceable>name</replaceable> is the name of an option and
<replaceable>value</replaceable> is its value. For example, <replaceable>value</replaceable> is its value. For example,

View File

@ -74,7 +74,10 @@ linkend="sec-configuration-syntax"/>, we saw the following structure
<callout arearefs='module-syntax-1'> <callout arearefs='module-syntax-1'>
<para> <para>
This line makes the current Nix expression a function. The variable This line makes the current Nix expression a function. The variable
<varname>pkgs</varname> contains Nixpkgs, while <varname>config</varname> <varname>pkgs</varname> contains Nixpkgs (by default, it takes the
<varname>nixpkgs</varname> entry of <envar>NIX_PATH</envar>, see the <link
xlink:href="https://nixos.org/manual/nix/stable/#sec-common-env">Nix
manual</link> for further details), while <varname>config</varname>
contains the full system configuration. This line can be omitted if there contains the full system configuration. This line can be omitted if there
is no reference to <varname>pkgs</varname> and <varname>config</varname> is no reference to <varname>pkgs</varname> and <varname>config</varname>
inside the module. inside the module.

View File

@ -65,10 +65,18 @@ let
dashboardFile = pkgs.writeText "dashboard.yaml" (builtins.toJSON dashboardConfiguration); dashboardFile = pkgs.writeText "dashboard.yaml" (builtins.toJSON dashboardConfiguration);
notifierConfiguration = {
apiVersion = 1;
notifiers = cfg.provision.notifiers;
};
notifierFile = pkgs.writeText "notifier.yaml" (builtins.toJSON notifierConfiguration);
provisionConfDir = pkgs.runCommand "grafana-provisioning" { } '' provisionConfDir = pkgs.runCommand "grafana-provisioning" { } ''
mkdir -p $out/{datasources,dashboards} mkdir -p $out/{datasources,dashboards}
ln -sf ${datasourceFile} $out/datasources/datasource.yaml ln -sf ${datasourceFile} $out/datasources/datasource.yaml
ln -sf ${dashboardFile} $out/dashboards/dashboard.yaml ln -sf ${dashboardFile} $out/dashboards/dashboard.yaml
ln -sf ${notifierFile} $out/notifiers/notifier.yaml
''; '';
# Get a submodule without any embedded metadata: # Get a submodule without any embedded metadata:
@ -79,80 +87,80 @@ let
options = { options = {
name = mkOption { name = mkOption {
type = types.str; type = types.str;
description = "Name of the datasource. Required"; description = "Name of the datasource. Required.";
}; };
type = mkOption { type = mkOption {
type = types.enum ["graphite" "prometheus" "cloudwatch" "elasticsearch" "influxdb" "opentsdb" "mysql" "mssql" "postgres" "loki"]; type = types.enum ["graphite" "prometheus" "cloudwatch" "elasticsearch" "influxdb" "opentsdb" "mysql" "mssql" "postgres" "loki"];
description = "Datasource type. Required"; description = "Datasource type. Required.";
}; };
access = mkOption { access = mkOption {
type = types.enum ["proxy" "direct"]; type = types.enum ["proxy" "direct"];
default = "proxy"; default = "proxy";
description = "Access mode. proxy or direct (Server or Browser in the UI). Required"; description = "Access mode. proxy or direct (Server or Browser in the UI). Required.";
}; };
orgId = mkOption { orgId = mkOption {
type = types.int; type = types.int;
default = 1; default = 1;
description = "Org id. will default to orgId 1 if not specified"; description = "Org id. will default to orgId 1 if not specified.";
}; };
url = mkOption { url = mkOption {
type = types.str; type = types.str;
description = "Url of the datasource"; description = "Url of the datasource.";
}; };
password = mkOption { password = mkOption {
type = types.nullOr types.str; type = types.nullOr types.str;
default = null; default = null;
description = "Database password, if used"; description = "Database password, if used.";
}; };
user = mkOption { user = mkOption {
type = types.nullOr types.str; type = types.nullOr types.str;
default = null; default = null;
description = "Database user, if used"; description = "Database user, if used.";
}; };
database = mkOption { database = mkOption {
type = types.nullOr types.str; type = types.nullOr types.str;
default = null; default = null;
description = "Database name, if used"; description = "Database name, if used.";
}; };
basicAuth = mkOption { basicAuth = mkOption {
type = types.nullOr types.bool; type = types.nullOr types.bool;
default = null; default = null;
description = "Enable/disable basic auth"; description = "Enable/disable basic auth.";
}; };
basicAuthUser = mkOption { basicAuthUser = mkOption {
type = types.nullOr types.str; type = types.nullOr types.str;
default = null; default = null;
description = "Basic auth username"; description = "Basic auth username.";
}; };
basicAuthPassword = mkOption { basicAuthPassword = mkOption {
type = types.nullOr types.str; type = types.nullOr types.str;
default = null; default = null;
description = "Basic auth password"; description = "Basic auth password.";
}; };
withCredentials = mkOption { withCredentials = mkOption {
type = types.bool; type = types.bool;
default = false; default = false;
description = "Enable/disable with credentials headers"; description = "Enable/disable with credentials headers.";
}; };
isDefault = mkOption { isDefault = mkOption {
type = types.bool; type = types.bool;
default = false; default = false;
description = "Mark as default datasource. Max one per org"; description = "Mark as default datasource. Max one per org.";
}; };
jsonData = mkOption { jsonData = mkOption {
type = types.nullOr types.attrs; type = types.nullOr types.attrs;
default = null; default = null;
description = "Datasource specific configuration"; description = "Datasource specific configuration.";
}; };
secureJsonData = mkOption { secureJsonData = mkOption {
type = types.nullOr types.attrs; type = types.nullOr types.attrs;
default = null; default = null;
description = "Datasource specific secure configuration"; description = "Datasource specific secure configuration.";
}; };
version = mkOption { version = mkOption {
type = types.int; type = types.int;
default = 1; default = 1;
description = "Version"; description = "Version.";
}; };
editable = mkOption { editable = mkOption {
type = types.bool; type = types.bool;
@ -168,41 +176,99 @@ let
name = mkOption { name = mkOption {
type = types.str; type = types.str;
default = "default"; default = "default";
description = "Provider name"; description = "Provider name.";
}; };
orgId = mkOption { orgId = mkOption {
type = types.int; type = types.int;
default = 1; default = 1;
description = "Organization ID"; description = "Organization ID.";
}; };
folder = mkOption { folder = mkOption {
type = types.str; type = types.str;
default = ""; default = "";
description = "Add dashboards to the specified folder"; description = "Add dashboards to the specified folder.";
}; };
type = mkOption { type = mkOption {
type = types.str; type = types.str;
default = "file"; default = "file";
description = "Dashboard provider type"; description = "Dashboard provider type.";
}; };
disableDeletion = mkOption { disableDeletion = mkOption {
type = types.bool; type = types.bool;
default = false; default = false;
description = "Disable deletion when JSON file is removed"; description = "Disable deletion when JSON file is removed.";
}; };
updateIntervalSeconds = mkOption { updateIntervalSeconds = mkOption {
type = types.int; type = types.int;
default = 10; default = 10;
description = "How often Grafana will scan for changed dashboards"; description = "How often Grafana will scan for changed dashboards.";
}; };
options = { options = {
path = mkOption { path = mkOption {
type = types.path; type = types.path;
description = "Path grafana will watch for dashboards"; description = "Path grafana will watch for dashboards.";
}; };
}; };
}; };
}; };
grafanaTypes.notifierConfig = types.submodule {
options = {
name = mkOption {
type = types.str;
default = "default";
description = "Notifier name.";
};
type = mkOption {
type = types.enum ["dingding" "discord" "email" "googlechat" "hipchat" "kafka" "line" "teams" "opsgenie" "pagerduty" "prometheus-alertmanager" "pushover" "sensu" "sensugo" "slack" "telegram" "threema" "victorops" "webhook"];
description = "Notifier type.";
};
uid = mkOption {
type = types.str;
description = "Unique notifier identifier.";
};
org_id = mkOption {
type = types.int;
default = 1;
description = "Organization ID.";
};
org_name = mkOption {
type = types.str;
default = "Main Org.";
description = "Organization name.";
};
is_default = mkOption {
type = types.bool;
description = "Is the default notifier.";
default = false;
};
send_reminder = mkOption {
type = types.bool;
default = true;
description = "Should the notifier be sent reminder notifications while alerts continue to fire.";
};
frequency = mkOption {
type = types.str;
default = "5m";
description = "How frequently should the notifier be sent reminders.";
};
disable_resolve_message = mkOption {
type = types.bool;
default = false;
description = "Turn off the message that sends when an alert returns to OK.";
};
settings = mkOption {
type = types.nullOr types.attrs;
default = null;
description = "Settings for the notifier type.";
};
secure_settings = mkOption {
type = types.nullOr types.attrs;
default = null;
description = "Secure settings for the notifier type.";
};
};
};
in { in {
options.services.grafana = { options.services.grafana = {
enable = mkEnableOption "grafana"; enable = mkEnableOption "grafana";
@ -337,17 +403,23 @@ in {
provision = { provision = {
enable = mkEnableOption "provision"; enable = mkEnableOption "provision";
datasources = mkOption { datasources = mkOption {
description = "Grafana datasources configuration"; description = "Grafana datasources configuration.";
default = []; default = [];
type = types.listOf grafanaTypes.datasourceConfig; type = types.listOf grafanaTypes.datasourceConfig;
apply = x: map _filter x; apply = x: map _filter x;
}; };
dashboards = mkOption { dashboards = mkOption {
description = "Grafana dashboard configuration"; description = "Grafana dashboard configuration.";
default = []; default = [];
type = types.listOf grafanaTypes.dashboardConfig; type = types.listOf grafanaTypes.dashboardConfig;
apply = x: map _filter x; apply = x: map _filter x;
}; };
notifiers = mkOption {
description = "Grafana notifier configuration.";
default = [];
type = types.listOf grafanaTypes.notifierConfig;
apply = x: map _filter x;
};
}; };
security = { security = {
@ -391,12 +463,12 @@ in {
smtp = { smtp = {
enable = mkEnableOption "smtp"; enable = mkEnableOption "smtp";
host = mkOption { host = mkOption {
description = "Host to connect to"; description = "Host to connect to.";
default = "localhost:25"; default = "localhost:25";
type = types.str; type = types.str;
}; };
user = mkOption { user = mkOption {
description = "User used for authentication"; description = "User used for authentication.";
default = ""; default = "";
type = types.str; type = types.str;
}; };
@ -417,7 +489,7 @@ in {
type = types.nullOr types.path; type = types.nullOr types.path;
}; };
fromAddress = mkOption { fromAddress = mkOption {
description = "Email address used for sending"; description = "Email address used for sending.";
default = "admin@grafana.localhost"; default = "admin@grafana.localhost";
type = types.str; type = types.str;
}; };
@ -425,7 +497,7 @@ in {
users = { users = {
allowSignUp = mkOption { allowSignUp = mkOption {
description = "Disable user signup / registration"; description = "Disable user signup / registration.";
default = false; default = false;
type = types.bool; type = types.bool;
}; };
@ -451,17 +523,17 @@ in {
auth.anonymous = { auth.anonymous = {
enable = mkOption { enable = mkOption {
description = "Whether to allow anonymous access"; description = "Whether to allow anonymous access.";
default = false; default = false;
type = types.bool; type = types.bool;
}; };
org_name = mkOption { org_name = mkOption {
description = "Which organization to allow anonymous access to"; description = "Which organization to allow anonymous access to.";
default = "Main Org."; default = "Main Org.";
type = types.str; type = types.str;
}; };
org_role = mkOption { org_role = mkOption {
description = "Which role anonymous users have in the organization"; description = "Which role anonymous users have in the organization.";
default = "Viewer"; default = "Viewer";
type = types.str; type = types.str;
}; };
@ -470,7 +542,7 @@ in {
analytics.reporting = { analytics.reporting = {
enable = mkOption { enable = mkOption {
description = "Whether to allow anonymous usage reporting to stats.grafana.net"; description = "Whether to allow anonymous usage reporting to stats.grafana.net.";
default = true; default = true;
type = types.bool; type = types.bool;
}; };
@ -496,6 +568,9 @@ in {
(optional ( (optional (
any (x: x.password != null || x.basicAuthPassword != null || x.secureJsonData != null) cfg.provision.datasources any (x: x.password != null || x.basicAuthPassword != null || x.secureJsonData != null) cfg.provision.datasources
) "Datasource passwords will be stored as plaintext in the Nix store!") ) "Datasource passwords will be stored as plaintext in the Nix store!")
(optional (
any (x: x.secure_settings != null) cfg.provision.notifiers
) "Notifier secure settings will be stored as plaintext in the Nix store!")
]; ];
environment.systemPackages = [ cfg.package ]; environment.systemPackages = [ cfg.package ];

View File

@ -8,9 +8,9 @@ let
# Convert systemd-style address specification to kresd config line(s). # Convert systemd-style address specification to kresd config line(s).
# On Nix level we don't attempt to precisely validate the address specifications. # On Nix level we don't attempt to precisely validate the address specifications.
mkListen = kind: addr: let mkListen = kind: addr: let
al_v4 = builtins.match "([0-9.]\+):([0-9]\+)" addr; al_v4 = builtins.match "([0-9.]+):([0-9]+)" addr;
al_v6 = builtins.match "\\[(.\+)]:([0-9]\+)" addr; al_v6 = builtins.match "\\[(.+)]:([0-9]+)" addr;
al_portOnly = builtins.match "()([0-9]\+)" addr; al_portOnly = builtins.match "()([0-9]+)" addr;
al = findFirst (a: a != null) al = findFirst (a: a != null)
(throw "services.kresd.*: incorrect address specification '${addr}'") (throw "services.kresd.*: incorrect address specification '${addr}'")
[ al_v4 al_v6 al_portOnly ]; [ al_v4 al_v6 al_portOnly ];

View File

@ -329,7 +329,7 @@ in
extraConfig = "internal;"; extraConfig = "internal;";
}; };
locations."~ ^/lib.*\.(js|css|gif|png|ico|jpg|jpeg)$" = { locations."~ ^/lib.*\\.(js|css|gif|png|ico|jpg|jpeg)$" = {
extraConfig = "expires 365d;"; extraConfig = "expires 365d;";
}; };
@ -349,7 +349,7 @@ in
''; '';
}; };
locations."~ \.php$" = { locations."~ \\.php$" = {
extraConfig = '' extraConfig = ''
try_files $uri $uri/ /doku.php; try_files $uri $uri/ /doku.php;
include ${pkgs.nginx}/conf/fastcgi_params; include ${pkgs.nginx}/conf/fastcgi_params;

View File

@ -804,7 +804,7 @@ in
ProtectControlGroups = true; ProtectControlGroups = true;
RestrictAddressFamilies = [ "AF_UNIX" "AF_INET" "AF_INET6" ]; RestrictAddressFamilies = [ "AF_UNIX" "AF_INET" "AF_INET6" ];
LockPersonality = true; LockPersonality = true;
MemoryDenyWriteExecute = !(builtins.any (mod: (mod.allowMemoryWriteExecute or false)) pkgs.nginx.modules); MemoryDenyWriteExecute = !(builtins.any (mod: (mod.allowMemoryWriteExecute or false)) cfg.package.modules);
RestrictRealtime = true; RestrictRealtime = true;
RestrictSUIDSGID = true; RestrictSUIDSGID = true;
PrivateMounts = true; PrivateMounts = true;

View File

@ -10,7 +10,7 @@ import ../make-test-python.nix ({pkgs, lib, php, ...}: {
testdir = pkgs.writeTextDir "web/index.php" "<?php phpinfo();"; testdir = pkgs.writeTextDir "web/index.php" "<?php phpinfo();";
in { in {
root = "${testdir}/web"; root = "${testdir}/web";
locations."~ \.php$".extraConfig = '' locations."~ \\.php$".extraConfig = ''
fastcgi_pass unix:${config.services.phpfpm.pools.foobar.socket}; fastcgi_pass unix:${config.services.phpfpm.pools.foobar.socket};
fastcgi_index index.php; fastcgi_index index.php;
include ${pkgs.nginx}/conf/fastcgi_params; include ${pkgs.nginx}/conf/fastcgi_params;

View File

@ -8,13 +8,13 @@
mkDerivation rec { mkDerivation rec {
pname = "musescore"; pname = "musescore";
version = "3.6"; version = "3.6.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "musescore"; owner = "musescore";
repo = "MuseScore"; repo = "MuseScore";
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-0M+idYnrgXyH6WLp+2jIYRnFzTB93v+dG1XHmSNyPjE="; sha256 = "sha256-21ZI5rsc05ZWEyM0LeFr+212YViLYveZZBvVpskh8iA=";
}; };
patches = [ patches = [

View File

@ -6,13 +6,13 @@
python3.pkgs.buildPythonApplication rec { python3.pkgs.buildPythonApplication rec {
pname = "vorta"; pname = "vorta";
version = "0.7.4"; version = "0.7.5";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "borgbase"; owner = "borgbase";
repo = "vorta"; repo = "vorta";
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-+WQ3p2ddyQpJqCLc1HqFZlKK85VkX2Iv2eXEcVkBs6g="; sha256 = "sha256-qPO8qmXYDDFwV+8hAUyfF4Ins0vkwEJbw4JPguUSYOw=";
}; };
postPatch = '' postPatch = ''

View File

@ -1,5 +1,5 @@
{ lib, appimageTools, fetchurl, makeDesktopItem { lib, appimageTools, fetchurl, makeDesktopItem
, gsettings-desktop-schemas, gtk2 , gsettings-desktop-schemas, gtk3
}: }:
let let
@ -30,7 +30,7 @@ in appimageTools.wrapType2 rec {
inherit name src; inherit name src;
profile = '' profile = ''
export XDG_DATA_DIRS=${gsettings-desktop-schemas}/share/gsettings-schemas/${gsettings-desktop-schemas.name}:${gtk2}/share/gsettings-schemas/${gtk2.name}:$XDG_DATA_DIRS export XDG_DATA_DIRS=${gsettings-desktop-schemas}/share/gsettings-schemas/${gsettings-desktop-schemas.name}:${gtk3}/share/gsettings-schemas/${gtk3.name}:$XDG_DATA_DIRS
''; '';
multiPkgs = null; # no p32bit needed multiPkgs = null; # no p32bit needed

View File

@ -2,37 +2,37 @@
, wrapGAppsHook, pkg-config, desktop-file-utils , wrapGAppsHook, pkg-config, desktop-file-utils
, appstream-glib, pythonPackages, glib, gobject-introspection , appstream-glib, pythonPackages, glib, gobject-introspection
, gtk3, webkitgtk, glib-networking, gnome3, gspell, texlive , gtk3, webkitgtk, glib-networking, gnome3, gspell, texlive
, shared-mime-info, haskellPackages}: , shared-mime-info, haskellPackages, libhandy
}:
let let
pythonEnv = pythonPackages.python.withPackages(p: with p; pythonEnv = pythonPackages.python.withPackages(p: with p; [
[ regex setuptools python-Levenshtein pyenchant pygobject3 pycairo pypandoc ]); regex setuptools python-Levenshtein pyenchant
texliveDist = texlive.combined.scheme-medium; pygobject3 pycairo pypandoc chardet
]);
in stdenv.mkDerivation rec { in stdenv.mkDerivation rec {
pname = "apostrophe"; pname = "apostrophe";
version = "2.2.0.3"; version = "2.3";
src = fetchFromGitLab { src = fetchFromGitLab {
owner = "somas"; owner = "somas";
repo = pname; repo = pname;
domain = "gitlab.gnome.org"; domain = "gitlab.gnome.org";
rev = "v${version}"; rev = "v${version}";
sha256 = "06bl1hc69ixk2vcb2ig74mwid14sl5zq6rfna7lx9na6j3l04879"; sha256 = "1ggrbbnhbnf6p3hs72dww3c9m1rvr4znggmvwcpj6i8v1a3kycnb";
}; };
nativeBuildInputs = [ meson ninja cmake pkg-config desktop-file-utils nativeBuildInputs = [ meson ninja cmake pkg-config desktop-file-utils
appstream-glib wrapGAppsHook ]; appstream-glib wrapGAppsHook ];
buildInputs = [ glib pythonEnv gobject-introspection gtk3 buildInputs = [ glib pythonEnv gobject-introspection gtk3
gnome3.adwaita-icon-theme webkitgtk gspell texliveDist gnome3.adwaita-icon-theme webkitgtk gspell texlive
glib-networking ]; glib-networking libhandy ];
postPatch = '' postPatch = ''
patchShebangs --build build-aux/meson_post_install.py patchShebangs --build build-aux/meson_post_install.py
substituteInPlace ${pname}/config.py --replace "/usr/share/${pname}" "$out/share/${pname}"
# get rid of unused distributed dependencies # get rid of unused distributed dependencies
rm -r ${pname}/pylocales rm -r ${pname}/pylocales
''; '';
@ -40,7 +40,7 @@ in stdenv.mkDerivation rec {
preFixup = '' preFixup = ''
gappsWrapperArgs+=( gappsWrapperArgs+=(
--prefix PYTHONPATH : "$out/lib/python${pythonEnv.pythonVersion}/site-packages/" --prefix PYTHONPATH : "$out/lib/python${pythonEnv.pythonVersion}/site-packages/"
--prefix PATH : "${texliveDist}/bin" --prefix PATH : "${texlive}/bin"
--prefix PATH : "${haskellPackages.pandoc-citeproc}/bin" --prefix PATH : "${haskellPackages.pandoc-citeproc}/bin"
--prefix XDG_DATA_DIRS : "${shared-mime-info}/share" --prefix XDG_DATA_DIRS : "${shared-mime-info}/share"
) )

View File

@ -106,7 +106,7 @@ stdenv.mkDerivation rec {
description = "Popular photo organizer for the GNOME desktop"; description = "Popular photo organizer for the GNOME desktop";
homepage = "https://wiki.gnome.org/Apps/Shotwell"; homepage = "https://wiki.gnome.org/Apps/Shotwell";
license = licenses.lgpl21Plus; license = licenses.lgpl21Plus;
maintainers = with maintainers; [domenkozar]; maintainers = with maintainers; [];
platforms = platforms.linux; platforms = platforms.linux;
}; };
} }

View File

@ -179,7 +179,7 @@ mkDerivation rec {
free and open source and great for both casual users and computer experts. free and open source and great for both casual users and computer experts.
''; '';
license = with licenses; if unrarSupport then unfreeRedistributable else gpl3Plus; license = with licenses; if unrarSupport then unfreeRedistributable else gpl3Plus;
maintainers = with maintainers; [ domenkozar pSub AndersonTorres ]; maintainers = with maintainers; [ pSub AndersonTorres ];
platforms = platforms.linux; platforms = platforms.linux;
}; };
} }

View File

@ -2,16 +2,16 @@
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "flavours"; pname = "flavours";
version = "0.3.5"; version = "0.3.6";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "Misterio77"; owner = "Misterio77";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "1lvbq026ap02f22mv45s904a0f81dr2f07j6bq0wnwl5wd5w0wpj"; sha256 = "0nys1sh4qwda1ql6aq07bhyvhjp5zf0qm98kr4kf2fmr87ddc12q";
}; };
cargoSha256 = "0wgi65k180mq1q6j4nma0wpfdvl67im5v5gmhzv1ap6xg3bicdg1"; cargoSha256 = "0bmmxiv8bd09kgxmhmynslfscsx2aml1m1glvid3inaipylcq45h";
meta = with lib; { meta = with lib; {
description = "An easy to use base16 scheme manager/builder that integrates with any workflow"; description = "An easy to use base16 scheme manager/builder that integrates with any workflow";

View File

@ -2,13 +2,13 @@
mkDerivation rec { mkDerivation rec {
pname = "gpxsee"; pname = "gpxsee";
version = "8.7"; version = "8.8";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "tumic0"; owner = "tumic0";
repo = "GPXSee"; repo = "GPXSee";
rev = version; rev = version;
sha256 = "sha256-pBNG9lDdqvxh2hGmOcL21mkkyFD7id1mWCUSgkTG71M="; sha256 = "sha256-eAXMmjPcfnJA5w6w/SRc6T5KHss77t0JijTB6+ctjzo=";
}; };
patches = (substituteAll { patches = (substituteAll {

View File

@ -34,23 +34,20 @@ in stdenv.mkDerivation rec {
src = fetchurl { src = fetchurl {
url = url =
"https://github.com/obsidianmd/obsidian-releases/releases/download/v${version}/obsidian-${version}.asar.gz"; "https://github.com/obsidianmd/obsidian-releases/releases/download/v${version}/obsidian-${version}.tar.gz";
sha256 = "AkPx7X00kEds7B1syXJPSV1+TJlqQ7NnR6w9wSG2BRw="; sha256 = "1acy0dny04c8rdxqvsq70aa7vd8rgyjarcrf57mhh26ai5wiw81s";
}; };
nativeBuildInputs = [ makeWrapper graphicsmagick ]; nativeBuildInputs = [ makeWrapper graphicsmagick ];
unpackPhase = ''
gzip -dc $src > obsidian.asar
'';
installPhase = '' installPhase = ''
mkdir -p $out/bin mkdir -p $out/bin
makeWrapper ${electron}/bin/electron $out/bin/obsidian \ makeWrapper ${electron}/bin/electron $out/bin/obsidian \
--add-flags $out/share/electron/obsidian.asar --add-flags $out/share/obsidian/app.asar
install -m 444 -D obsidian.asar $out/share/electron/obsidian.asar install -m 444 -D resources/app.asar $out/share/obsidian/app.asar
install -m 444 -D resources/obsidian.asar $out/share/obsidian/obsidian.asar
install -m 444 -D "${desktopItem}/share/applications/"* \ install -m 444 -D "${desktopItem}/share/applications/"* \
-t $out/share/applications/ -t $out/share/applications/

View File

@ -0,0 +1,24 @@
{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "senv";
version = "0.5.0";
src = fetchFromGitHub {
owner = "SpectralOps";
repo = pname;
rev = "v${version}";
sha256 = "014422sdks2xlpsgvynwibz25jg1fj5s8dcf8b1j6djgq5glhfaf";
};
vendorSha256 = "05n55yf75r7i9kl56kw9x6hgmyf5bva5dzp9ni2ws0lb1389grfc";
subPackages = [ "." ];
meta = with lib; {
description = "Friends don't let friends leak secrets on their terminal window";
homepage = "https://github.com/SpectralOps/senv";
license = licenses.mit;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}

View File

@ -0,0 +1,35 @@
#!/usr/bin/env nix-shell
#!nix-shell -i python3 -p python3Packages.feedparser python3Packages.requests
# This script prints the Git commit message for stable channel updates.
import re
import textwrap
import feedparser
import requests
feed = feedparser.parse('https://chromereleases.googleblog.com/feeds/posts/default')
html_tags = re.compile(r'<[^>]+>')
for entry in feed.entries:
if entry.title != 'Stable Channel Update for Desktop':
continue
url = requests.get(entry.link).url.split('?')[0]
content = entry.content[0].value
if re.search(r'Linux', content) is None:
continue
#print(url) # For debugging purposes
version = re.search(r'\d+(\.\d+){3}', content).group(0)
fixes = re.search(r'This update includes .+ security fixes\.', content).group(0)
fixes = html_tags.sub('', fixes)
zero_days = re.search(r'Google is aware of reports that .+ in the wild\.', content)
if zero_days:
fixes += " " + zero_days.group(0)
cve_list = re.findall(r'CVE-[^: ]+', content)
cve_string = ' '.join(cve_list)
print('chromium: TODO -> ' + version + '\n')
print(url + '\n')
print('\n'.join(textwrap.wrap(fixes, width=72)) + '\n')
print("CVEs:\n" + '\n'.join(textwrap.wrap(cve_string, width=72)))
break # We only care about the most recent stable channel update

View File

@ -1,20 +1,20 @@
{ {
"stable": { "stable": {
"version": "88.0.4324.182", "version": "89.0.4389.72",
"sha256": "10av060ix6lgsvv99lyvyy03r0m3zwdg4hddbi6dycrdxk1iyh9h", "sha256": "0kxwq1m6zdsq3ns2agvk1hqkhwlv1693h41rlmvhy3nim9jhnsll",
"sha256bin64": "1rjg23xiybpnis93yb5zkvglm3r4fds9ip5mgl6f682z5x0yj05b", "sha256bin64": "1h2dxgr660xy1rv52ck8ps6av0l5jdhj2k29lvs190ccpxaycglb",
"deps": { "deps": {
"gn": { "gn": {
"version": "2020-11-05", "version": "2021-01-07",
"url": "https://gn.googlesource.com/gn", "url": "https://gn.googlesource.com/gn",
"rev": "53d92014bf94c3893886470a1c7c1289f8818db0", "rev": "595e3be7c8381d4eeefce62a63ec12bae9ce5140",
"sha256": "1xcm07qjk6m2czi150fiqqxql067i832adck6zxrishm70c9jbr9" "sha256": "08y7cjlgjdbzja5ij31wxc9i191845m01v1hc7y176svk9y0hj1d"
} }
}, },
"chromedriver": { "chromedriver": {
"version": "88.0.4324.96", "version": "89.0.4389.23",
"sha256_linux": "0hhy3c50hlnic6kz19565s8wv2yn7k45hxnkxbvb46zhcc5s2z41", "sha256_linux": "169inx1xl7750mdd1g7yji72m33kvpk7h1dy4hyj0qignrifdm0r",
"sha256_darwin": "11mzcmp6dr8wzyv7v2jic7l44lr77phi4y3z1ghszhfdz5dil5xp" "sha256_darwin": "1a84nn4rnd215h4sjghmw03mdr49wyab8j4vlnv3xp516yn07gr3"
} }
}, },
"beta": { "beta": {

View File

@ -11,9 +11,9 @@
buildGoModule rec { buildGoModule rec {
pname = "minikube"; pname = "minikube";
version = "1.17.1"; version = "1.18.0";
vendorSha256 = "1flny2f7n3vqhl9vkwsqxvzl8q3fv8v0h1p0d0qaqp9lgn02q3bh"; vendorSha256 = "0fy9x9zlmwpncyj55scvriv4vr4kjvqss85b0a1zs2srvlnf8gz2";
doCheck = false; doCheck = false;
@ -21,7 +21,7 @@ buildGoModule rec {
owner = "kubernetes"; owner = "kubernetes";
repo = "minikube"; repo = "minikube";
rev = "v${version}"; rev = "v${version}";
sha256 = "1m4kw77j4swwg3vqwmwrys7cq790w4g6y4gvdg33z9n1y9xzqys3"; sha256 = "1yjcaq0lg5a7ip2qxjmnzq3pa1gjhdfdq9a4xk2zxyqcam4dh6v2";
}; };
nativeBuildInputs = [ go-bindata installShellFiles pkg-config which ]; nativeBuildInputs = [ go-bindata installShellFiles pkg-config which ];

View File

@ -1,24 +1,26 @@
{ lib, buildGoPackage, fetchFromGitHub }: { lib, buildGoModule, fetchFromGitHub }:
buildGoPackage rec { buildGoModule rec {
pname = "terraform-docs"; pname = "terraform-docs";
version = "0.9.1"; version = "0.11.2";
goPackagePath = "github.com/segmentio/${pname}";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "segmentio"; owner = "terraform-docs";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "00sfzdqhf8g85m03r6mbzfas5vvc67iq7syb8ljcgxg8l1knxnjx"; sha256 = "sha256-x2YTd4ZnimTRkFWbwFp4qz6BymD6ESVxBy6YE+QqQ6k=";
}; };
vendorSha256 = "sha256-drfhfY03Ao0fqleBdzbAnPsE4kVrJMcUbec0txaEIP0=";
subPackages = [ "." ];
preBuild = '' preBuild = ''
buildFlagsArray+=("-ldflags" "-X main.version=${version}") buildFlagsArray+=("-ldflags" "-X main.version=${version}")
''; '';
meta = with lib; { meta = with lib; {
description = "A utility to generate documentation from Terraform modules in various output formats"; description = "A utility to generate documentation from Terraform modules in various output formats";
homepage = "https://github.com/segmentio/terraform-docs/"; homepage = "https://github.com/terraform-docs/terraform-docs/";
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ zimbatm ]; maintainers = with maintainers; [ zimbatm ];
}; };

View File

@ -17,11 +17,6 @@ buildRustPackage rec {
nativeBuildInputs = [ pkg-config ]; nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl ]; buildInputs = [ openssl ];
installPhase = ''
mkdir -p $out/bin
cp -p $releaseDir/cfdyndns $out/bin/
'';
meta = with lib; { meta = with lib; {
description = "CloudFlare Dynamic DNS Client"; description = "CloudFlare Dynamic DNS Client";
homepage = "https://github.com/colemickens/cfdyndns"; homepage = "https://github.com/colemickens/cfdyndns";

View File

@ -55,7 +55,7 @@ stdenv.mkDerivation rec {
homepage = "https://www.shrew.net/software"; homepage = "https://www.shrew.net/software";
description = "IPsec Client for FreeBSD, NetBSD and many Linux based operating systems"; description = "IPsec Client for FreeBSD, NetBSD and many Linux based operating systems";
platforms = platforms.unix; platforms = platforms.unix;
maintainers = [ maintainers.domenkozar ]; maintainers = [ ];
license = licenses.sleepycat; license = licenses.sleepycat;
}; };
} }

View File

@ -37,7 +37,7 @@ stdenv.mkDerivation rec {
description = "Lightweight Tox client"; description = "Lightweight Tox client";
homepage = "https://github.com/uTox/uTox"; homepage = "https://github.com/uTox/uTox";
license = licenses.gpl3; license = licenses.gpl3;
maintainers = with maintainers; [ domenkozar ]; maintainers = with maintainers; [ ];
platforms = platforms.all; platforms = platforms.all;
}; };
} }

View File

@ -44,7 +44,7 @@ python2Packages.buildPythonApplication rec {
homepage = "https://www.mailpile.is/"; homepage = "https://www.mailpile.is/";
license = [ licenses.asl20 licenses.agpl3 ]; license = [ licenses.asl20 licenses.agpl3 ];
platforms = platforms.linux; platforms = platforms.linux;
maintainers = [ maintainers.domenkozar ]; maintainers = [ ];
knownVulnerabilities = [ knownVulnerabilities = [
"Numerous and uncounted, upstream has requested we not package it. See more: https://github.com/NixOS/nixpkgs/pull/23058#issuecomment-283515104" "Numerous and uncounted, upstream has requested we not package it. See more: https://github.com/NixOS/nixpkgs/pull/23058#issuecomment-283515104"
]; ];

View File

@ -53,7 +53,7 @@ stdenv.mkDerivation rec {
homepage = "http://retroshare.sourceforge.net/"; homepage = "http://retroshare.sourceforge.net/";
license = licenses.gpl2Plus; license = licenses.gpl2Plus;
platforms = platforms.linux; platforms = platforms.linux;
maintainers = [ maintainers.domenkozar ]; maintainers = [ ];
broken = true; # broken by libupnp: 1.6.21 -> 1.8.3 (#41684) broken = true; # broken by libupnp: 1.6.21 -> 1.8.3 (#41684)
}; };
} }

View File

@ -1,15 +1,14 @@
{ { mkDerivation, lib, fetchurl, extra-cmake-modules, kdoctools
mkDerivation, lib, fetchurl, extra-cmake-modules, kdoctools, makeWrapper, , boost, qtwebkit, qtx11extras, shared-mime-info
boost, qtwebkit, qtx11extras, shared-mime-info, , breeze-icons, kactivities, karchive, kcodecs, kcompletion, kconfig, kconfigwidgets
breeze-icons, kactivities, karchive, kcodecs, kcompletion, kconfig, kconfigwidgets, , kcoreaddons, kdbusaddons, kdiagram, kguiaddons, khtml, ki18n
kcoreaddons, kdbusaddons, kdiagram, kguiaddons, khtml, ki18n, , kiconthemes, kitemviews, kjobwidgets, kcmutils, kdelibs4support, kio, kross
kiconthemes, kitemviews, kjobwidgets, kcmutils, kdelibs4support, kio, kross, , knotifications, knotifyconfig, kparts, ktextwidgets, kwallet, kwidgetsaddons
knotifications, knotifyconfig, kparts, ktextwidgets, kwallet, kwidgetsaddons, , kwindowsystem, kxmlgui, sonnet, threadweaver
kwindowsystem, kxmlgui, sonnet, threadweaver, , kcontacts, akonadi, akonadi-calendar, akonadi-contacts
kcontacts, akonadi, akonadi-calendar, akonadi-contacts, , eigen, git, gsl, ilmbase, kproperty, kreport, lcms2, marble, pcre, libgit2, libodfgen
eigen, git, gsl, ilmbase, kproperty, kreport, lcms2, marble, pcre, libgit2, libodfgen, , librevenge, libvisio, libwpd, libwpg, libwps, okular, openexr, openjpeg, phonon
librevenge, libvisio, libwpd, libwpg, libwps, okular, openexr, openjpeg, phonon, , poppler, pstoedit, qca-qt5, vc
poppler, pstoedit, qca-qt5, vc
# TODO: package Spnav, m2mml LibEtonyek, Libqgit2 # TODO: package Spnav, m2mml LibEtonyek, Libqgit2
}: }:

View File

@ -0,0 +1,74 @@
{ lib
, mkDerivation
, fetchFromGitHub
, cmake
, pkg-config
, doxygen
, wrapQtAppsHook
, pcre
, poco
, qtbase
, qtsvg
, libsForQt5
, nlohmann_json
, soapysdr-with-plugins
, portaudio
, alsaLib
, muparserx
, python3
}:
mkDerivation rec {
pname = "pothos";
version = "0.7.1";
src = fetchFromGitHub {
owner = "pothosware";
repo = "PothosCore";
rev = "pothos-${version}";
sha256 = "038c3ipvf4sgj0zhm3vcj07ymsva4ds6v89y43f5d3p4n8zc2rsg";
fetchSubmodules = true;
};
patches = [
# spuce's CMakeLists.txt uses QT5_USE_Modules, which does not seem to work on Nix
./spuce.patch
];
nativeBuildInputs = [ cmake pkg-config doxygen wrapQtAppsHook ];
buildInputs = [
pcre poco qtbase qtsvg libsForQt5.qwt nlohmann_json
soapysdr-with-plugins portaudio alsaLib muparserx python3
];
postInstall = ''
install -Dm644 $out/share/Pothos/Desktop/pothos-flow.desktop $out/share/applications/pothos-flow.desktop
install -Dm644 $out/share/Pothos/Desktop/pothos-flow-16.png $out/share/icons/hicolor/16x16/apps/pothos-flow.png
install -Dm644 $out/share/Pothos/Desktop/pothos-flow-22.png $out/share/icons/hicolor/22x22/apps/pothos-flow.png
install -Dm644 $out/share/Pothos/Desktop/pothos-flow-32.png $out/share/icons/hicolor/32x32/apps/pothos-flow.png
install -Dm644 $out/share/Pothos/Desktop/pothos-flow-48.png $out/share/icons/hicolor/48x48/apps/pothos-flow.png
install -Dm644 $out/share/Pothos/Desktop/pothos-flow-64.png $out/share/icons/hicolor/64x64/apps/pothos-flow.png
install -Dm644 $out/share/Pothos/Desktop/pothos-flow-128.png $out/share/icons/hicolor/128x128/apps/pothos-flow.png
install -Dm644 $out/share/Pothos/Desktop/pothos-flow.xml $out/share/mime/application/pothos-flow.xml
rm -r $out/share/Pothos/Desktop
'';
dontWrapQtApps = true;
preFixup = ''
# PothosUtil does not need to be wrapped
wrapQtApp $out/bin/PothosFlow
wrapQtApp $out/bin/spuce_fir_plot
wrapQtApp $out/bin/spuce_iir_plot
wrapQtApp $out/bin/spuce_other_plot
wrapQtApp $out/bin/spuce_window_plot
'';
meta = with lib; {
description = "The Pothos data-flow framework";
homepage = "https://github.com/pothosware/PothosCore/wiki";
license = licenses.boost;
platforms = platforms.linux;
maintainers = with maintainers; [ eduardosm ];
};
}

View File

@ -0,0 +1,101 @@
diff --git a/spuce/qt_fir/CMakeLists.txt b/spuce/qt_fir/CMakeLists.txt
index fa2e580..e32113c 100644
--- a/spuce/qt_fir/CMakeLists.txt
+++ b/spuce/qt_fir/CMakeLists.txt
@@ -6,7 +6,7 @@ Message("Project spuce fir_plot")
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON)
-FIND_PACKAGE(Qt5 REQUIRED Gui Core Widgets)
+FIND_PACKAGE(Qt5 REQUIRED Gui Core Widgets PrintSupport)
set(SOURCES
make_filter.cpp
@@ -27,11 +27,7 @@ set_property(TARGET spuce_fir PROPERTY POSITION_INDEPENDENT_CODE TRUE)
set_property(TARGET spuce_fir_plot PROPERTY POSITION_INDEPENDENT_CODE TRUE)
set_property(TARGET spuce_fir_plot PROPERTY CXX_STANDARD 11)
-TARGET_LINK_LIBRARIES(spuce_fir_plot spuce_fir ${QT_LIBRARIES} spuce)
-QT5_USE_Modules(spuce_fir_plot Gui)
-QT5_USE_Modules(spuce_fir_plot Core)
-QT5_USE_Modules(spuce_fir_plot Widgets)
-QT5_USE_Modules(spuce_fir_plot PrintSupport)
+TARGET_LINK_LIBRARIES(spuce_fir_plot spuce_fir ${QT_LIBRARIES} spuce Qt::Gui Qt::Core Qt::Widgets Qt::PrintSupport)
INSTALL(TARGETS spuce_fir_plot DESTINATION bin)
diff --git a/spuce/qt_iir/CMakeLists.txt b/spuce/qt_iir/CMakeLists.txt
index 4717226..debb5f9 100644
--- a/spuce/qt_iir/CMakeLists.txt
+++ b/spuce/qt_iir/CMakeLists.txt
@@ -6,7 +6,7 @@ Message("Project spuce iir_plot")
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON)
-FIND_PACKAGE(Qt5 REQUIRED Gui Core Widgets)
+FIND_PACKAGE(Qt5 REQUIRED Gui Core Widgets PrintSupport)
set(SOURCES
make_filter.cpp
@@ -27,10 +27,6 @@ set_property(TARGET spuce_iir PROPERTY POSITION_INDEPENDENT_CODE TRUE)
set_property(TARGET spuce_iir_plot PROPERTY CXX_STANDARD 11)
set_property(TARGET spuce_iir_plot PROPERTY POSITION_INDEPENDENT_CODE TRUE)
-TARGET_LINK_LIBRARIES(spuce_iir_plot spuce_iir ${QT_LIBRARIES} spuce)
-QT5_USE_Modules(spuce_iir_plot Gui)
-QT5_USE_Modules(spuce_iir_plot Core)
-QT5_USE_Modules(spuce_iir_plot Widgets)
-QT5_USE_Modules(spuce_iir_plot PrintSupport)
+TARGET_LINK_LIBRARIES(spuce_iir_plot spuce_iir ${QT_LIBRARIES} spuce Qt::Gui Qt::Core Qt::Widgets Qt::PrintSupport)
INSTALL(TARGETS spuce_iir_plot DESTINATION bin)
diff --git a/spuce/qt_other/CMakeLists.txt b/spuce/qt_other/CMakeLists.txt
index 29c270d..e1ed778 100644
--- a/spuce/qt_other/CMakeLists.txt
+++ b/spuce/qt_other/CMakeLists.txt
@@ -6,7 +6,7 @@ Message("Project spuce window_plot")
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON)
-FIND_PACKAGE(Qt5 REQUIRED Gui Core Widgets)
+FIND_PACKAGE(Qt5 REQUIRED Gui Core Widgets PrintSupport)
set(SOURCES make_filter.cpp)
ADD_LIBRARY(spuce_other STATIC ${SOURCES})
@@ -23,10 +23,6 @@ ADD_EXECUTABLE(spuce_other_plot ${other_plot_SOURCES} ${other_plot_HEADERS_MOC})
set_property(TARGET spuce_other_plot PROPERTY CXX_STANDARD 11)
set_property(TARGET spuce_other_plot PROPERTY POSITION_INDEPENDENT_CODE TRUE)
-TARGET_LINK_LIBRARIES(spuce_other_plot spuce_other ${QT_LIBRARIES} spuce)
-QT5_USE_Modules(spuce_other_plot Gui)
-QT5_USE_Modules(spuce_other_plot Core)
-QT5_USE_Modules(spuce_other_plot Widgets)
-QT5_USE_Modules(spuce_other_plot PrintSupport)
+TARGET_LINK_LIBRARIES(spuce_other_plot spuce_other ${QT_LIBRARIES} spuce Qt::Gui Qt::Core Qt::Widgets Qt::PrintSupport)
INSTALL(TARGETS spuce_other_plot DESTINATION bin)
diff --git a/spuce/qt_window/CMakeLists.txt b/spuce/qt_window/CMakeLists.txt
index e95c85b..4a77ab8 100644
--- a/spuce/qt_window/CMakeLists.txt
+++ b/spuce/qt_window/CMakeLists.txt
@@ -6,7 +6,7 @@ Message("Project spuce window_plot")
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON)
-FIND_PACKAGE(Qt5 REQUIRED Gui Core Widgets)
+FIND_PACKAGE(Qt5 REQUIRED Gui Core Widgets PrintSupport)
set(SOURCES make_filter.cpp)
@@ -25,10 +25,6 @@ set_property(TARGET spuce_window_plot PROPERTY CXX_STANDARD 11)
set_property(TARGET spuce_win PROPERTY POSITION_INDEPENDENT_CODE TRUE)
set_property(TARGET spuce_window_plot PROPERTY POSITION_INDEPENDENT_CODE TRUE)
-TARGET_LINK_LIBRARIES(spuce_window_plot spuce_win ${QT_LIBRARIES} spuce)
-QT5_USE_Modules(spuce_window_plot Gui)
-QT5_USE_Modules(spuce_window_plot Core)
-QT5_USE_Modules(spuce_window_plot Widgets)
-QT5_USE_Modules(spuce_window_plot PrintSupport)
+TARGET_LINK_LIBRARIES(spuce_window_plot spuce_win ${QT_LIBRARIES} spuce Qt::Gui Qt::Core Qt::Widgets Qt::PrintSupport)
INSTALL(TARGETS spuce_window_plot DESTINATION bin)

View File

@ -1,13 +1,14 @@
{ stdenv, lib, fetchurl, dpkg, atk, glib, pango, gdk-pixbuf, gnome2, gtk2, cairo { stdenv, lib, fetchurl, dpkg, atk, glib, pango, gdk-pixbuf, gnome2, gtk3, cairo
, freetype, fontconfig, dbus, libXi, libXcursor, libXdamage, libXrandr , freetype, fontconfig, dbus, libXi, libXcursor, libXdamage, libXrandr
, libXcomposite, libXext, libXfixes, libXrender, libX11, libXtst, libXScrnSaver , libXcomposite, libXext, libXfixes, libXrender, libX11, libXtst, libXScrnSaver
, libxcb, nss, nspr, alsaLib, cups, expat, udev, libpulseaudio }: , libxcb, nss, nspr, alsaLib, cups, expat, udev, libpulseaudio, at-spi2-atk }:
let let
libPath = lib.makeLibraryPath [ libPath = lib.makeLibraryPath [
stdenv.cc.cc gtk2 gnome2.GConf atk glib pango gdk-pixbuf cairo freetype fontconfig dbus stdenv.cc.cc gtk3 gnome2.GConf atk glib pango gdk-pixbuf cairo freetype fontconfig dbus
libXi libXcursor libXdamage libXrandr libXcomposite libXext libXfixes libxcb libXi libXcursor libXdamage libXrandr libXcomposite libXext libXfixes libxcb
libXrender libX11 libXtst libXScrnSaver nss nspr alsaLib cups expat udev libpulseaudio libXrender libX11 libXtst libXScrnSaver nss nspr alsaLib cups expat udev libpulseaudio
at-spi2-atk
]; ];
in in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
@ -27,7 +28,7 @@ stdenv.mkDerivation rec {
mkdir -p "$out/bin" mkdir -p "$out/bin"
mv opt "$out/" mv opt "$out/"
ln -s "$out/opt/Hyper/hyper" "$out/bin/hyper" ln -s "$out/opt/Hyper/hyper" "$out/bin/hyper"
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" --set-rpath "${libPath}:\$ORIGIN" "$out/opt/Hyper/hyper" patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" --set-rpath "${libPath}:$out/opt/Hyper:\$ORIGIN" "$out/opt/Hyper/hyper"
mv usr/* "$out/" mv usr/* "$out/"
''; '';
dontPatchELF = true; dontPatchELF = true;

View File

@ -45,7 +45,7 @@ stdenv.mkDerivation rec {
''; '';
homepage = "https://android.googlesource.com/tools/repo"; homepage = "https://android.googlesource.com/tools/repo";
license = licenses.asl20; license = licenses.asl20;
maintainers = [ maintainers.primeos ]; maintainers = [ ];
platforms = platforms.unix; platforms = platforms.unix;
}; };
} }

View File

@ -13,14 +13,14 @@
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "pijul"; pname = "pijul";
version = "1.0.0-alpha.38"; version = "1.0.0-alpha.46";
src = fetchCrate { src = fetchCrate {
inherit version pname; inherit version pname;
sha256 = "0f14jkr1yswwyqz0l47b0287vpyz0g1qmksr3hkskhbmwlkf1q2b"; sha256 = "0x095g26qdch1m3izkn8ynwk1xg1qyz9ia8di23j61k7z2rqk0j5";
}; };
cargoSha256 = "08p2dq48d1islk02xz1j39402fqxfh4isf8qi219aivl0yciwjn3"; cargoSha256 = "0cw1y4vmhn70a94512mppk0kfh9xdfm0v4rp3zm00y06jzq1a1fp";
cargoBuildFlags = lib.optional gitImportSupport "--features=git"; cargoBuildFlags = lib.optional gitImportSupport "--features=git";

View File

@ -231,7 +231,6 @@ in stdenv.mkDerivation {
cmakeFlags = [ cmakeFlags = [
"-DAPP_RENDER_SYSTEM=${if useGbm then "gles" else "gl"}" "-DAPP_RENDER_SYSTEM=${if useGbm then "gles" else "gl"}"
"-DCORE_PLATFORM_NAME=${lib.concatStringsSep " " kodi_platforms}"
"-Dlibdvdcss_URL=${libdvdcss.src}" "-Dlibdvdcss_URL=${libdvdcss.src}"
"-Dlibdvdnav_URL=${libdvdnav.src}" "-Dlibdvdnav_URL=${libdvdnav.src}"
"-Dlibdvdread_URL=${libdvdread.src}" "-Dlibdvdread_URL=${libdvdread.src}"
@ -251,9 +250,11 @@ in stdenv.mkDerivation {
# I'm guessing there is a thing waiting to time out # I'm guessing there is a thing waiting to time out
doCheck = false; doCheck = false;
preConfigure = ''
cmakeFlagsArray+=("-DCORE_PLATFORM_NAME=${lib.concatStringsSep " " kodi_platforms}")
'' + lib.optionalString (stdenv.hostPlatform != stdenv.buildPlatform) ''
# Need these tools on the build system when cross compiling, # Need these tools on the build system when cross compiling,
# hacky, but have found no other way. # hacky, but have found no other way.
preConfigure = lib.optionalString (stdenv.hostPlatform != stdenv.buildPlatform) ''
CXX=${stdenv.cc.targetPrefix}c++ LD=ld make -C tools/depends/native/JsonSchemaBuilder CXX=${stdenv.cc.targetPrefix}c++ LD=ld make -C tools/depends/native/JsonSchemaBuilder
cmakeFlags+=" -DWITH_JSONSCHEMABUILDER=$PWD/tools/depends/native/JsonSchemaBuilder/bin" cmakeFlags+=" -DWITH_JSONSCHEMABUILDER=$PWD/tools/depends/native/JsonSchemaBuilder/bin"
@ -293,6 +294,6 @@ in stdenv.mkDerivation {
homepage = "https://kodi.tv/"; homepage = "https://kodi.tv/";
license = licenses.gpl2; license = licenses.gpl2;
platforms = platforms.linux; platforms = platforms.linux;
maintainers = with maintainers; [ domenkozar titanous edwtjo peterhoeg sephalon ]; maintainers = with maintainers; [ titanous edwtjo peterhoeg sephalon ];
}; };
} }

View File

@ -22,5 +22,6 @@ mkDerivation rec {
license = licenses.gpl2; license = licenses.gpl2;
maintainers = with maintainers; [ hrdinka ]; maintainers = with maintainers; [ hrdinka ];
platforms = with platforms; linux; platforms = with platforms; linux;
broken = true;
}; };
} }

View File

@ -12,6 +12,7 @@
, nixosTests , nixosTests
, criu , criu
, system , system
, fetchpatch
}: }:
let let
@ -37,16 +38,24 @@ let
in in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "crun"; pname = "crun";
version = "0.17"; version = "0.18";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "containers"; owner = "containers";
repo = pname; repo = pname;
rev = version; rev = version;
sha256 = "sha256-OdB7UXLG99ErbfSCvq87LxBy5EYkUvTfyQNG70RFbl4="; sha256 = "sha256-VjMpfj2qUQdhqdnLpZsYigfo2sM7gNl0GrE4nitp13g=";
fetchSubmodules = true; fetchSubmodules = true;
}; };
patches = [
# For 0.18 some tests switched to static builds, this was reverted after 0.18 was released
(fetchpatch {
url = "https://github.com/containers/crun/commit/d26579bfe56aa36dd522745d47a661ce8c70d4e7.patch";
sha256 = "1xmc0wj0j2xcg0915vxn0pplc4s94rpmw0s5g8cyf8dshfl283f9";
})
];
nativeBuildInputs = [ autoreconfHook go-md2man pkg-config python3 ]; nativeBuildInputs = [ autoreconfHook go-md2man pkg-config python3 ];
buildInputs = [ libcap libseccomp systemd yajl ] buildInputs = [ libcap libseccomp systemd yajl ]

View File

@ -77,7 +77,6 @@ stdenv.mkDerivation rec {
++ optionals libiscsiSupport [ libiscsi ] ++ optionals libiscsiSupport [ libiscsi ]
++ optionals smbdSupport [ samba ]; ++ optionals smbdSupport [ samba ];
enableParallelBuilding = true;
dontUseMesonConfigure = true; # meson's configurePhase isn't compatible with qemu build dontUseMesonConfigure = true; # meson's configurePhase isn't compatible with qemu build
outputs = [ "out" "ga" ]; outputs = [ "out" "ga" ];

View File

@ -1,4 +1,4 @@
{ lib, mkDerivation, fetchFromGitLab, pkg-config, qmake, qtbase, qemu, makeWrapper }: { lib, mkDerivation, fetchFromGitLab, pkg-config, qmake, qtbase, qemu }:
mkDerivation rec { mkDerivation rec {
pname = "qtemu"; pname = "qtemu";

View File

@ -108,8 +108,8 @@ in stdenv.mkDerivation (fBuildAttrs // {
rm -rf $bazelOut/external/{bazel_tools,\@bazel_tools.marker} rm -rf $bazelOut/external/{bazel_tools,\@bazel_tools.marker}
${if removeRulesCC then "rm -rf $bazelOut/external/{rules_cc,\\@rules_cc.marker}" else ""} ${if removeRulesCC then "rm -rf $bazelOut/external/{rules_cc,\\@rules_cc.marker}" else ""}
rm -rf $bazelOut/external/{embedded_jdk,\@embedded_jdk.marker} rm -rf $bazelOut/external/{embedded_jdk,\@embedded_jdk.marker}
${if removeLocalConfigCc then "rm -rf $bazelOut/external/{local_config_cc,\@local_config_cc.marker}" else ""} ${if removeLocalConfigCc then "rm -rf $bazelOut/external/{local_config_cc,\\@local_config_cc.marker}" else ""}
${if removeLocal then "rm -rf $bazelOut/external/{local_*,\@local_*.marker}" else ""} ${if removeLocal then "rm -rf $bazelOut/external/{local_*,\\@local_*.marker}" else ""}
# Clear markers # Clear markers
find $bazelOut/external -name '@*\.marker' -exec sh -c 'echo > {}' \; find $bazelOut/external -name '@*\.marker' -exec sh -c 'echo > {}' \;

View File

@ -4,7 +4,6 @@
, fetchFromGitHub , fetchFromGitHub
, fetchurl , fetchurl
, fetchzip , fetchzip
, optipng
, cairo , cairo
, python3 , python3
, pkg-config , pkg-config

View File

@ -1,6 +1,6 @@
{ fetchFromGitHub, lib, buildPythonPackage, pythonOlder { fetchFromGitHub, lib, buildPythonPackage, pythonOlder
, afdko, appdirs, attrs, black, booleanoperations, brotlipy, click , afdko, appdirs, attrs, black, booleanoperations, brotlipy, click
, defcon, fontmath, fontparts, fontpens, fonttools, fs, lxml , defcon, fontmath, fontparts, fontpens, fonttools, lxml
, mutatormath, pathspec, psautohint, pyclipper, pytz, regex, scour , mutatormath, pathspec, psautohint, pyclipper, pytz, regex, scour
, toml, typed-ast, ufonormalizer, ufoprocessor, unicodedata2, zopfli , toml, typed-ast, ufonormalizer, ufoprocessor, unicodedata2, zopfli
, pillow, six, bash, setuptools_scm }: , pillow, six, bash, setuptools_scm }:

View File

@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
makeFlags = [ makeFlags = [
"-C sources" "-C sources"
"CC=${stdenv.cc}/bin/cc" "CC=${stdenv.cc.targetPrefix}cc"
]; ];
preInstall = '' preInstall = ''
@ -34,6 +34,6 @@ stdenv.mkDerivation rec {
description = "A portable Forth compiler"; description = "A portable Forth compiler";
homepage = "https://thebeez.home.xs4all.nl/4tH/index.html"; homepage = "https://thebeez.home.xs4all.nl/4tH/index.html";
license = licenses.lgpl3; license = licenses.lgpl3;
platforms = platforms.linux; platforms = platforms.all;
}; };
} }

View File

@ -39,6 +39,6 @@ stdenv.mkDerivation rec {
homepage = "https://github.com/cseed/arachne-pnr"; homepage = "https://github.com/cseed/arachne-pnr";
license = lib.licenses.mit; license = lib.licenses.mit;
maintainers = with lib.maintainers; [ shell thoughtpolice ]; maintainers = with lib.maintainers; [ shell thoughtpolice ];
platforms = lib.platforms.linux; platforms = lib.platforms.unix;
}; };
} }

View File

@ -1,4 +1,4 @@
{ lib, fetchFromGitHub, fetchgit, crystal, makeWrapper, nix-prefetch-git }: { lib, fetchFromGitHub, crystal, makeWrapper, nix-prefetch-git }:
crystal.buildCrystalPackage rec { crystal.buildCrystalPackage rec {
pname = "crystal2nix"; pname = "crystal2nix";

View File

@ -63,6 +63,6 @@ stdenv.mkDerivation rec {
''; '';
maintainers = [ lib.maintainers.peti ]; maintainers = [ lib.maintainers.peti ];
platforms = lib.platforms.gnu ++ lib.platforms.linux; platforms = lib.platforms.unix;
}; };
} }

View File

@ -70,5 +70,6 @@ stdenv.mkDerivation rec {
homepage = "https://www.cs.kent.ac.uk/people/staff/dat/miranda/"; homepage = "https://www.cs.kent.ac.uk/people/staff/dat/miranda/";
license = licenses.bsd2; license = licenses.bsd2;
maintainers = with maintainers; [ siraben ]; maintainers = with maintainers; [ siraben ];
platforms = platforms.all;
}; };
} }

View File

@ -16,7 +16,7 @@ stdenv.mkDerivation rec {
buildPhase = '' buildPhase = ''
mkdir -p $out/bin $out/share/mu mkdir -p $out/bin $out/share/mu
cp -r lib $out/share/mu cp -r lib $out/share/mu
gcc -O3 -o $out/bin/mu-unwrapped bootstrap/mu64.c ${stdenv.cc.targetPrefix}cc -o $out/bin/mu-unwrapped bootstrap/mu64.c
''; '';
installPhase = '' installPhase = ''
@ -29,6 +29,6 @@ stdenv.mkDerivation rec {
homepage = "https://github.com/nickmqb/muon"; homepage = "https://github.com/nickmqb/muon";
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ Br1ght0ne ]; maintainers = with maintainers; [ Br1ght0ne ];
platforms = [ "x86_64-linux" ]; platforms = platforms.all;
}; };
} }

View File

@ -1,6 +1,6 @@
import ./generic.nix { import ./generic.nix {
major_version = "4"; major_version = "4";
minor_version = "11"; minor_version = "11";
patch_version = "1"; patch_version = "2";
sha256 = "0k4521c0p10c5ams6vjv5qkkjhmpkb0bfn04llcz46ah0f3r2jpa"; sha256 = "1m3wrgkkv3f77wvcymjm0i2srxzmx62y6jln3i0a2px07ng08l9z";
} }

View File

@ -1,6 +1,6 @@
{ stdenv, lib, fetchFromGitHub, writeText, openjdk11_headless, gradleGen { stdenv, lib, fetchFromGitHub, writeText, openjdk11_headless, gradleGen
, pkg-config, perl, cmake, gperf, gtk2, gtk3, libXtst, libXxf86vm, glib, alsaLib , pkg-config, perl, cmake, gperf, gtk2, gtk3, libXtst, libXxf86vm, glib, alsaLib
, ffmpeg_3, python, ruby }: , ffmpeg, python3, ruby }:
let let
major = "15"; major = "15";
@ -21,8 +21,8 @@ let
sha256 = "019glq8rhn6amy3n5jc17vi2wpf1pxpmmywvyz1ga8n09w7xscq1"; sha256 = "019glq8rhn6amy3n5jc17vi2wpf1pxpmmywvyz1ga8n09w7xscq1";
}; };
buildInputs = [ gtk2 gtk3 libXtst libXxf86vm glib alsaLib ffmpeg_3 ]; buildInputs = [ gtk2 gtk3 libXtst libXxf86vm glib alsaLib ffmpeg ];
nativeBuildInputs = [ gradle_ perl pkg-config cmake gperf python ruby ]; nativeBuildInputs = [ gradle_ perl pkg-config cmake gperf python3 ruby ];
dontUseCmakeConfigure = true; dontUseCmakeConfigure = true;

View File

@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
buildPhase = '' buildPhase = ''
# according to official documentation # according to official documentation
cc rasm_v*.c -O2 -lm -lrt -o rasm ${stdenv.cc.targetPrefix}cc rasm_v*.c -O2 -lm -o rasm
''; '';
installPhase = '' installPhase = ''
@ -28,6 +28,6 @@ stdenv.mkDerivation rec {
# use -n option to display all licenses # use -n option to display all licenses
license = licenses.mit; # expat version license = licenses.mit; # expat version
maintainers = [ ]; maintainers = [ ];
platforms = platforms.linux; platforms = platforms.all;
}; };
} }

View File

@ -14,6 +14,10 @@ stdenv.mkDerivation {
sha256 = "1bns9wgn5i1ahj19qx7v1wwdy8ca3q3pigxwznm5nywsw7s7lqxs"; sha256 = "1bns9wgn5i1ahj19qx7v1wwdy8ca3q3pigxwznm5nywsw7s7lqxs";
}; };
postPatch = ''
substituteInPlace Makefile --replace 'g++' '${stdenv.cc.targetPrefix}c++'
'';
installPhase = '' installPhase = ''
mkdir -p $out/bin mkdir -p $out/bin
mv serpent $out/bin mv serpent $out/bin
@ -33,6 +37,6 @@ stdenv.mkDerivation {
homepage = "https://github.com/ethereum/wiki/wiki/Serpent"; homepage = "https://github.com/ethereum/wiki/wiki/Serpent";
license = with licenses; [ wtfpl ]; license = with licenses; [ wtfpl ];
maintainers = with maintainers; [ chris-martin ]; maintainers = with maintainers; [ chris-martin ];
platforms = with platforms; linux; platforms = platforms.all;
}; };
} }

View File

@ -1,26 +0,0 @@
{ stdenv, fetchurl, lua5 }:
stdenv.mkDerivation {
version = "1.6.2";
pname = "lua-filesystem";
isLibrary = true;
src = fetchurl {
url = "https://github.com/keplerproject/luafilesystem/archive/v1_6_2.tar.gz";
sha256 = "1n8qdwa20ypbrny99vhkmx8q04zd2jjycdb5196xdhgvqzk10abz";
};
buildInputs = [ lua5 ];
preBuild = ''
makeFlagsArray=(
PREFIX=$out
LUA_LIBDIR="$out/lib/lua/${lua5.luaversion}"
LUA_INC="-I${lua5}/include");
'';
meta = {
homepage = "https://github.com/keplerproject/luafilesystem";
hydraPlatforms = lib.platforms.linux;
maintainers = [ ];
};
}

View File

@ -1,25 +0,0 @@
{ stdenv, fetchurl, lua5 }:
stdenv.mkDerivation rec {
pname = "lua-sockets";
version = "2.0.2";
src = fetchurl {
url = "http://files.luaforge.net/releases/luasocket/luasocket/luasocket-${version}/luasocket-${version}.tar.gz";
sha256 = "19ichkbc4rxv00ggz8gyf29jibvc2wq9pqjik0ll326rrxswgnag";
};
luaver = lua5.luaversion;
patchPhase = ''
sed -e "s,^INSTALL_TOP_SHARE.*,INSTALL_TOP_SHARE=$out/share/lua/${lua5.luaversion}," \
-e "s,^INSTALL_TOP_LIB.*,INSTALL_TOP_LIB=$out/lib/lua/${lua5.luaversion}," \
-i config
'';
buildInputs = [ lua5 ];
meta = {
homepage = "http://w3.impa.br/~diego/software/luasocket/";
hydraPlatforms = lib.platforms.linux;
maintainers = [ ];
};
}

View File

@ -2,13 +2,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "libinstpatch"; pname = "libinstpatch";
version = "1.1.5"; version = "1.1.6";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "swami"; owner = "swami";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "0psx4hc5yksfd3k2xqsc7c8lbz2d4yybikyddyd9hlkhq979cmjb"; sha256 = "sha256-OU6/slrPDgzn9tvXZJKSWbcFbpS/EAsOi52FtjeYdvA=";
}; };
nativeBuildInputs = [ cmake pkg-config ]; nativeBuildInputs = [ cmake pkg-config ];

View File

@ -2,13 +2,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "libmysofa"; pname = "libmysofa";
version = "1.1"; version = "1.2";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "hoene"; owner = "hoene";
repo = "libmysofa"; repo = "libmysofa";
rev = "v${version}"; rev = "v${version}";
sha256 = "12jzap5fh0a1fmfy4z8z4kjjlwi0qzdb9z59ijdlyqdzwxnzkccx"; sha256 = "sha256-f+1CIVSxyScyNF92cPIiZwfnnCVrWfCZlbrIXtduIdY=";
}; };
nativeBuildInputs = [ cmake ]; nativeBuildInputs = [ cmake ];

View File

@ -2,13 +2,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "actor-framework"; pname = "actor-framework";
version = "0.17.6"; version = "0.18.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "actor-framework"; owner = "actor-framework";
repo = "actor-framework"; repo = "actor-framework";
rev = version; rev = version;
sha256 = "03pi2jcdvdxncvv3hmzlamask0db1fc5l79k9rgq9agl0swd0mnz"; sha256 = "1c3spd6vm1h9qhlk5c4fdwi6nbqx5vwz2zvv6qp0rj1hx6xpq3cx";
}; };
nativeBuildInputs = [ cmake ]; nativeBuildInputs = [ cmake ];
@ -16,14 +16,14 @@ stdenv.mkDerivation rec {
buildInputs = [ openssl ]; buildInputs = [ openssl ];
cmakeFlags = [ cmakeFlags = [
"-DCAF_NO_EXAMPLES:BOOL=TRUE" "-DCAF_ENABLE_EXAMPLES:BOOL=OFF"
]; ];
doCheck = true; doCheck = true;
checkTarget = "test"; checkTarget = "test";
preCheck = '' preCheck = ''
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH''${LD_LIBRARY_PATH:+:}$PWD/lib export LD_LIBRARY_PATH=$PWD/libcaf_core:$PWD/libcaf_io
export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH''${DYLD_LIBRARY_PATH:+:}$PWD/lib export DYLD_LIBRARY_PATH=$PWD/libcaf_core:$PWD/libcaf_io
''; '';
meta = with lib; { meta = with lib; {

View File

@ -18,7 +18,7 @@ stdenv.mkDerivation rec {
license = licenses.mit; license = licenses.mit;
}; };
majmin = builtins.head ( builtins.match "([[:digit:]]\.[[:digit:]]+)\.*" "${version}" ); majmin = builtins.head ( builtins.match "([[:digit:]]\\.[[:digit:]]+).*" "${version}" );
src = fetchurl { src = fetchurl {
url = "https://codesynthesis.com/download/${pname}/${majmin}/${pname}-${version}.tar.bz2"; url = "https://codesynthesis.com/download/${pname}/${majmin}/${pname}-${version}.tar.bz2";
sha256 = "070j2x02m4gm1fn7gnymrkbdxflgzxwl7m96aryv8wp3f3366l8j"; sha256 = "070j2x02m4gm1fn7gnymrkbdxflgzxwl7m96aryv8wp3f3366l8j";

View File

@ -1,25 +1,31 @@
{ fetchFromGitHub, lib, stdenv, autoreconfHook, pkg-config, libxml2, gd, glib, getopt, libxslt, nix }: { fetchFromGitHub, lib, stdenv, autoreconfHook, pkg-config, libxml2, gd, glib, getopt, libxslt, nix }:
stdenv.mkDerivation { stdenv.mkDerivation {
name = "libnixxml"; pname = "libnixxml";
version = "unstable-2020-06-25";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "svanderburg"; owner = "svanderburg";
repo = "libnixxml"; repo = "libnixxml";
rev = "54c04a5fdbc8661b2445a7527f499e0a77753a1a"; rev = "54c04a5fdbc8661b2445a7527f499e0a77753a1a";
sha256 = "sha256-HKQnCkO1TDs1e0MDil0Roq4YRembqRHQvb7lK3GAftQ="; sha256 = "sha256-HKQnCkO1TDs1e0MDil0Roq4YRembqRHQvb7lK3GAftQ=";
}; };
configureFlags = [ "--with-gd" "--with-glib" ];
CFLAGS = "-Wall"; preConfigure = ''
nativeBuildInputs = [ autoreconfHook ];
buildInputs = [ pkg-config libxml2 gd.dev glib getopt libxslt nix ];
doCheck = false;
postPatch = ''
./bootstrap ./bootstrap
''; '';
configureFlags = [ "--with-gd" "--with-glib" ];
CFLAGS = "-Wall";
nativeBuildInputs = [ autoreconfHook pkg-config ];
buildInputs = [ libxml2 gd.dev glib getopt libxslt nix ];
doCheck = false;
meta = with lib; { meta = with lib; {
description = "XML-based Nix-friendly data integration library"; description = "XML-based Nix-friendly data integration library";
homepage = https://github.com/svanderburg/libnixxml; homepage = "https://github.com/svanderburg/libnixxml";
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ tomberek ]; maintainers = with maintainers; [ tomberek ];
platforms = platforms.unix; platforms = platforms.unix;

View File

@ -1,23 +0,0 @@
{lib, stdenv, fetchurl, protobuf}:
stdenv.mkDerivation {
name = "libosmpbf-1.5.0";
src = fetchurl {
url = "https://github.com/scrosby/OSM-binary/archive/v1.5.0.tar.gz";
sha256 = "sha256-Kr8xJnKXk3MsM4B2OZnMNl5Rv/2jaaAIITh5o82QR2w=";
};
buildInputs = [ protobuf ];
sourceRoot = "OSM-binary-1.5.0/src";
installFlags = [ "PREFIX=$(out)" ];
meta = {
homepage = "https://github.com/scrosby/OSM-binary";
description = "C library to read and write OpenStreetMap PBF files";
license = lib.licenses.lgpl3;
platforms = lib.platforms.unix;
};
}

View File

@ -0,0 +1,37 @@
{ stdenv
, lib
, mkDerivation
, fetchurl
, cmake
, pkg-config
, polkit
, glib
, pcre
, libselinux
, libsepol
, util-linux
}:
mkDerivation rec {
pname = "polkit-qt-1";
version = "0.113.0";
src = fetchurl {
url = "mirror://kde/stable/${pname}/${pname}-${version}.tar.xz";
sha256 = "sha256-W4ZqKVTvEP+2YVbi/orQMhtVKKjfLkqRsC9QQc5VY6c=";
};
nativeBuildInputs = [ cmake pkg-config ];
buildInputs = [
glib
pcre
polkit
] ++ lib.optionals stdenv.isLinux [ libselinux libsepol util-linux ];
meta = with lib; {
description = "A Qt wrapper around PolKit";
maintainers = with maintainers; [ ttuegel ];
platforms = platforms.linux;
};
}

View File

@ -1,34 +0,0 @@
{ lib, stdenv, fetchurl, cmake, pkg-config, polkit, automoc4, glib, qt4 }:
with lib;
stdenv.mkDerivation {
name = "polkit-qt-1-qt4-0.112.0";
src = fetchurl {
url = "mirror://kde/stable/apps/KDE4.x/admin/polkit-qt-1-0.112.0.tar.bz2";
sha256 = "1ip78x20hjqvm08kxhp6gb8hf6k5n6sxyx6kk2yvvq53djzh7yv7";
};
outputs = [ "out" "dev" ];
nativeBuildInputs = [ cmake pkg-config automoc4 ];
propagatedBuildInputs = [ polkit glib qt4 ];
postFixup =
''
for i in $dev/lib/cmake/*/*.cmake; do
echo "fixing $i"
substituteInPlace $i \
--replace "\''${PACKAGE_PREFIX_DIR}/lib" $out/lib
done
'';
meta = with lib; {
description = "A Qt wrapper around PolKit";
maintainers = [ maintainers.ttuegel ];
platforms = platforms.linux;
license = licenses.lgpl21;
};
}

View File

@ -1,32 +0,0 @@
{ lib, stdenv, fetchurl, cmake, pkg-config, polkit, glib, qtbase }:
with lib;
stdenv.mkDerivation {
name = "polkit-qt-1-qt5-0.112.0";
outputs = [ "out" "dev" ];
src = fetchurl {
url = "mirror://kde/stable/apps/KDE4.x/admin/polkit-qt-1-0.112.0.tar.bz2";
sha256 = "1ip78x20hjqvm08kxhp6gb8hf6k5n6sxyx6kk2yvvq53djzh7yv7";
};
nativeBuildInputs = [ cmake pkg-config ];
propagatedBuildInputs = [ polkit glib qtbase ];
dontWrapQtApps = true;
postFixup = ''
# Fix library location in CMake module
sed -i "$dev/lib/cmake/PolkitQt5-1/PolkitQt5-1Config.cmake" \
-e "s,\\(set_and_check.POLKITQT-1_LIB_DIR\\).*$,\\1 \"''${!outputLib}/lib\"),"
'';
meta = {
description = "A Qt wrapper around PolKit";
maintainers = with lib.maintainers; [ ttuegel ];
platforms = with lib.platforms; linux;
};
}

View File

@ -12,7 +12,6 @@ stdenv.mkDerivation rec {
}; };
nativeBuildInputs = [ cmake ]; nativeBuildInputs = [ cmake ];
buildInputs = [ ];
meta = with lib; { meta = with lib; {
homepage = "https://github.com/liuq/QuadProgpp"; homepage = "https://github.com/liuq/QuadProgpp";
@ -22,6 +21,6 @@ stdenv.mkDerivation rec {
Goldfarb-Idnani active-set dual method. Goldfarb-Idnani active-set dual method.
''; '';
maintainers = with maintainers; [ ]; maintainers = with maintainers; [ ];
platforms = with platforms; linux; platforms = platforms.all;
}; };
} }

View File

@ -2,10 +2,11 @@
, pkg-config, libiconv }: , pkg-config, libiconv }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "serf-1.3.9"; pname = "serf";
version = "1.3.9";
src = fetchurl { src = fetchurl {
url = "https://www.apache.org/dist/serf/${name}.tar.bz2"; url = "https://www.apache.org/dist/serf/${pname}-${version}.tar.bz2";
sha256 = "1k47gbgpp52049andr28y28nbwh9m36bbb0g8p0aka3pqlhjv72l"; sha256 = "1k47gbgpp52049andr28y28nbwh9m36bbb0g8p0aka3pqlhjv72l";
}; };

View File

@ -49,8 +49,8 @@ let
in in
{ {
spdlog_1 = generic { spdlog_1 = generic {
version = "1.8.1"; version = "1.8.2";
sha256 = "sha256-EyZhYgcdtZC+vsOUKShheY57L0tpXltduHWwaoy6G9k="; sha256 = "sha256-vYled5Z9fmxuO9193lefpFzIHAiSgvYn2iOfneLidQ8=";
}; };
spdlog_0 = generic { spdlog_0 = generic {

View File

@ -5,13 +5,13 @@
buildDunePackage rec { buildDunePackage rec {
pname = "digestif"; pname = "digestif";
version = "0.9.0"; version = "1.0.0";
useDune2 = true; useDune2 = true;
src = fetchurl { src = fetchurl {
url = "https://github.com/mirage/digestif/releases/download/v${version}/digestif-v${version}.tbz"; url = "https://github.com/mirage/digestif/releases/download/v${version}/digestif-v${version}.tbz";
sha256 = "0vk9prgjp46xs8qizq7szkj6mqjj2ymncs2016bc8zswcdc1a3q4"; sha256 = "11188ya6ksb0p0zvs6saz3qxv4a8pyy8m3sq35f3qfxrxhghqi99";
}; };
propagatedBuildInputs = [ bigarray-compat eqaf stdlib-shims ]; propagatedBuildInputs = [ bigarray-compat eqaf stdlib-shims ];

View File

@ -0,0 +1,33 @@
{ lib, fetchFromGitHub, buildDunePackage }:
buildDunePackage rec {
pname = "directories";
version = "0.2";
useDune2 = true;
minimumOCamlVersion = "4.07";
src = fetchFromGitHub {
owner = "ocamlpro";
repo = pname;
rev = version;
sha256 = "0s7ginh0g0fhw8xf9v58cx99a8q9jqsf4i0p134m5qzf84qpjwff";
};
meta = {
homepage = "https://github.com/ocamlpro/directories";
description = "An OCaml library that provides configuration, cache and data paths (and more!) following the suitable conventions on Linux, macOS and Windows";
longDescription = ''
directories is an OCaml library that provides configuration, cache and
data paths (and more!) following the suitable conventions on Linux, macOS
and Windows. It is inspired by similar libraries for other languages such
as directories-jvm.
The following conventions are used: XDG Base Directory Specification and
xdg-user-dirs on Linux, Known Folders on Windows, Standard Directories on
macOS.
'';
license = lib.licenses.isc;
maintainers = with lib.maintainers; [ bcc32 ];
};
}

View File

@ -1,9 +1,11 @@
{ lib, fetchzip, buildDunePackage }: { lib, fetchzip, buildDunePackage, ocaml }:
buildDunePackage rec { buildDunePackage rec {
pname = "integers"; pname = "integers";
version = "0.4.0"; version = "0.4.0";
useDune2 = lib.versionAtLeast ocaml.version "4.08";
src = fetchzip { src = fetchzip {
url = "https://github.com/ocamllabs/ocaml-integers/archive/${version}.tar.gz"; url = "https://github.com/ocamllabs/ocaml-integers/archive/${version}.tar.gz";
sha256 = "0yp3ab0ph7mp5741g7333x4nx8djjvxzpnv3zvsndyzcycspn9dd"; sha256 = "0yp3ab0ph7mp5741g7333x4nx8djjvxzpnv3zvsndyzcycspn9dd";

View File

@ -1,20 +1,26 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
, flit-core
, pytestCheckHook , pytestCheckHook
, pythonOlder
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "aiomultiprocess"; pname = "aiomultiprocess";
version = "0.8.0"; version = "0.9.0";
format = "pyproject";
disabled = pythonOlder "3.6";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "omnilib"; owner = "omnilib";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "0vkj1vgvlv828pi3sn0hjzdy9f0j63gljs2ylibbsaixa7mbkpvy"; sha256 = "sha256-yOP69FXDb2Grmtszx7oa6uiJGUar8su3KwqQPI+xjrw=";
}; };
nativeBuildInputs = [ flit-core ];
checkInputs = [ pytestCheckHook ]; checkInputs = [ pytestCheckHook ];
pytestFlagsArray = [ "aiomultiprocess/tests/*.py" ]; pytestFlagsArray = [ "aiomultiprocess/tests/*.py" ];

View File

@ -8,14 +8,14 @@
buildPythonPackage rec { buildPythonPackage rec {
version = "15.0.0"; version = "16.0.0";
pname = "azure-mgmt-resource"; pname = "azure-mgmt-resource";
disabled = !isPy3k; disabled = !isPy3k;
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
extension = "zip"; extension = "zip";
sha256 = "80ecb69aa21152b924edf481e4b26c641f11aa264120bc322a14284811df9c14"; sha256 = "0bdbdc9c1ed2ef975d8dff45f358d1e06dc6761eace5b6817f13993447e48a68";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [

View File

@ -1,13 +1,12 @@
{ lib, stdenv, buildPythonPackage, fetchPypi, pythonOlder, isPy3k { lib, stdenv, buildPythonPackage, fetchPypi, pythonOlder, isPy3k
, argcomplete, colorlog, pyvmomi, requests, verboselogs , colorlog, pyvmomi, requests, verboselogs
, psutil, pyopenssl, setuptools , psutil, pyopenssl, setuptools
, mock, pytest, pytest-mock, pytestCheckHook, qemu , mock, pytest-mock, pytestCheckHook, qemu
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "cot"; pname = "cot";
version = "2.2.1"; version = "2.2.1";
disabled = !isPy3k; disabled = !isPy3k;
src = fetchPypi { src = fetchPypi {

View File

@ -21,10 +21,12 @@ buildPythonPackage rec {
PYTHONPATH=.:$PYTHONPATH django-admin.py test --settings=django_mailman3.tests.settings_test PYTHONPATH=.:$PYTHONPATH django-admin.py test --settings=django_mailman3.tests.settings_test
''; '';
pythonImportsCheck = [ "django_mailman3" ];
meta = with lib; { meta = with lib; {
description = "Django library for Mailman UIs"; description = "Django library for Mailman UIs";
homepage = "https://gitlab.com/mailman/django-mailman3"; homepage = "https://gitlab.com/mailman/django-mailman3";
license = licenses.gpl3; license = licenses.gpl3Plus;
maintainers = with maintainers; [ globin peti ]; maintainers = with maintainers; [ globin peti ];
}; };
} }

View File

@ -1,5 +1,5 @@
{ lib, fetchPypi, buildPythonPackage { lib, fetchPypi, buildPythonPackage
, boto3, requests, datadog, configparser, python , requests, datadog, configparser, python
}: }:
buildPythonPackage rec { buildPythonPackage rec {

View File

@ -23,7 +23,7 @@ buildPythonPackage rec {
format = "other"; format = "other";
src = fetchurl { src = fetchurl {
url = "http://pysvn.barrys-emacs.org/source_kits/${pname}-${version}.tar.gz"; url = "https://pysvn.barrys-emacs.org/source_kits/${pname}-${version}.tar.gz";
sha256 = "sRPa4wNyjDmGdF1gTOgLS0pnrdyZwkkH4/9UCdh/R9Q="; sha256 = "sRPa4wNyjDmGdF1gTOgLS0pnrdyZwkkH4/9UCdh/R9Q=";
}; };
@ -79,5 +79,7 @@ buildPythonPackage rec {
description = "Python bindings for Subversion"; description = "Python bindings for Subversion";
homepage = "http://pysvn.tigris.org/"; homepage = "http://pysvn.tigris.org/";
license = licenses.asl20; license = licenses.asl20;
# g++: command not found
broken = stdenv.isDarwin;
}; };
} }

View File

@ -1,40 +1,45 @@
{ lib { lib
, buildPythonPackage
, fetchPypi
, pytest
, mock
, cmarkgfm
, bleach , bleach
, buildPythonPackage
, cmarkgfm
, docutils , docutils
, fetchPypi
, future , future
, mock
, pygments , pygments
, six , pytestCheckHook
, pythonOlder
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "readme_renderer"; pname = "readme_renderer";
version = "28.0"; version = "29.0";
disabled = pythonOlder "3.6";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "6b7e5aa59210a40de72eb79931491eaf46fefca2952b9181268bd7c7c65c260a"; sha256 = "sha256-kv1awr+Gd/MQ8zA6pLzludX58glKuYwp8TeR17gFo9s=";
}; };
checkInputs = [ pytest mock ];
propagatedBuildInputs = [ propagatedBuildInputs = [
bleach cmarkgfm docutils future pygments six bleach
cmarkgfm
docutils
future
pygments
]; ];
checkPhase = '' checkInputs = [
# disable one failing test case mock
# fixtures test is failing for incorrect class name pytestCheckHook
py.test -k "not test_invalid_link and not fixtures" ];
'';
meta = { pythonImportsCheck = [ "readme_renderer" ];
description = "readme_renderer is a library for rendering readme descriptions for Warehouse";
meta = with lib; {
description = "Python library for rendering readme descriptions";
homepage = "https://github.com/pypa/readme_renderer"; homepage = "https://github.com/pypa/readme_renderer";
license = lib.licenses.asl20; license = with licenses; [ asl20 ];
maintainers = with maintainers; [ fab ];
}; };
} }

View File

@ -0,0 +1,50 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, future
, ipython
, numpy
, pyserial
, pyusb
, hostPlatform
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "rfcat";
version = "1.9.5";
src = fetchFromGitHub {
owner = "atlas0fd00m";
repo = "rfcat";
rev = "v${version}";
sha256 = "1mmr7g7ma70sk6vl851430nqnd7zxsk7yb0xngwrdx9z7fbz2ck0";
};
propagatedBuildInputs = [
future
ipython
numpy
pyserial
pyusb
];
postInstall = lib.optionalString hostPlatform.isLinux ''
mkdir -p $out/etc/udev/rules.d
cp etc/udev/rules.d/20-rfcat.rules $out/etc/udev/rules.d
'';
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [ "rflib" ];
meta = with lib; {
description = "Swiss Army knife of sub-GHz ISM band radio";
homepage = "https://github.com/atlas0fd00m/rfcat";
license = licenses.bsd3;
maintainers = with maintainers; [ trepetti ];
changelog = "https://github.com/atlas0fd00m/rfcat/releases/tag/v${version}";
};
}

View File

@ -2,7 +2,7 @@
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchPypi
, six , six
, pytest , pytestCheckHook
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@ -14,7 +14,14 @@ buildPythonPackage rec {
sha256 = "1pv02lvvmgz2qb61vz1jkjc04fgm4hpfvaj5zm4i3mjp64hd1mha"; sha256 = "1pv02lvvmgz2qb61vz1jkjc04fgm4hpfvaj5zm4i3mjp64hd1mha";
}; };
buildInputs = [ six pytest ]; propagatedBuildInputs = [ six ];
checkInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "w3lib" ];
disabledTests = [
"test_add_or_replace_parameter"
];
meta = with lib; { meta = with lib; {
description = "A library of web-related functions"; description = "A library of web-related functions";
@ -22,5 +29,4 @@ buildPythonPackage rec {
license = licenses.bsd3; license = licenses.bsd3;
maintainers = with maintainers; [ drewkett ]; maintainers = with maintainers; [ drewkett ];
}; };
} }

View File

@ -16,7 +16,7 @@ stdenv.mkDerivation rec {
sha256 = "sha256-wqdZ/kCjwhoWtaiNAM1m869vByHk6mG2OULfuDotVP0="; sha256 = "sha256-wqdZ/kCjwhoWtaiNAM1m869vByHk6mG2OULfuDotVP0=";
}; };
patchPhase = '' postPatch = ''
echo -java-home ${jre.home} >>conf/sbtopts echo -java-home ${jre.home} >>conf/sbtopts
''; '';
@ -25,17 +25,16 @@ stdenv.mkDerivation rec {
buildInputs = lib.optionals stdenv.isLinux [ zlib ]; buildInputs = lib.optionals stdenv.isLinux [ zlib ];
installPhase = '' installPhase = ''
runHook preInstall
mkdir -p $out/share/sbt $out/bin mkdir -p $out/share/sbt $out/bin
cp -ra . $out/share/sbt cp -ra . $out/share/sbt
ln -sT ../share/sbt/bin/sbt $out/bin/sbt ln -sT ../share/sbt/bin/sbt $out/bin/sbt
ln -sT ../share/sbt/bin/sbtn-x86_64-${ ln -sT ../share/sbt/bin/sbtn-x86_64-${
if (stdenv.isDarwin) then "apple-darwin" else "pc-linux" if (stdenv.isDarwin) then "apple-darwin" else "pc-linux"
} $out/bin/sbtn } $out/bin/sbtn
'';
doInstallCheck = true; runHook postInstall
installCheckPhase = ''
($out/bin/sbt --offline --version 2>&1 || true) | grep 'getting org.scala-sbt sbt ${version} (this may take some time)'
''; '';
meta = with lib; { meta = with lib; {

View File

@ -0,0 +1,22 @@
{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "go-mockery";
version = "2.5.1";
src = fetchFromGitHub {
owner = "vektra";
repo = "mockery";
rev = "v${version}";
sha256 = "5W5WGWqxpZzOqk1VOlLeggIqfneRb7s7ZT5faNEhDos=";
};
vendorSha256 = "//V3ia3YP1hPgC1ipScURZ5uXU4A2keoG6dGuwaPBcA=";
meta = with lib; {
homepage = "https://github.com/vektra/mockery";
description = "A mock code autogenerator for Golang";
maintainers = with maintainers; [ fbrs ];
license = licenses.bsd3;
};
}

View File

@ -2,13 +2,13 @@
buildGoModule rec { buildGoModule rec {
pname = "gops"; pname = "gops";
version = "0.3.15"; version = "0.3.16";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "google"; owner = "google";
repo = "gops"; repo = "gops";
rev = "v${version}"; rev = "v${version}";
sha256 = "091idnsgbwabmm5s9zhm474fbxvjvpkvwg68snbypfll7wdr3phy"; sha256 = "1ksypkja5smxvrhgcjk0w18ws97crx6bx5sj20sh8352xx0nm6mp";
}; };
vendorSha256 = null; vendorSha256 = null;

View File

@ -0,0 +1,30 @@
{ cmake, fetchFromGitHub, lib, stdenv }:
stdenv.mkDerivation rec {
pname = "luaformatter";
version = "1.3.4";
src = fetchFromGitHub {
owner = "koihik";
repo = "luaformatter";
rev = version;
sha256 = "163190g37r6npg5k5mhdwckdhv9nwy2gnfp5jjk8p0s6cyvydqjw";
fetchSubmodules = true;
};
nativeBuildInputs = [ cmake ];
installPhase = ''
runHook preInstall
mkdir -p $out/bin
cp lua-format $out/bin
runHook postInstall
'';
meta = with lib; {
description = "Code formatter for lua";
homepage = "https://github.com/koihik/luaformatter";
license = licenses.asl20;
maintainers = with maintainers; [ figsoda ];
};
}

View File

@ -25,6 +25,14 @@ stdenv.mkDerivation rec {
preConfigure = "echo ${version} > .tarball-version"; preConfigure = "echo ${version} > .tarball-version";
postInstall = ''
# rules printed by the following invocation are static,
# they come from hardcoded configs in libuuu/config.cpp:48
$out/bin/uuu -udev > udev-rules 2>stderr.txt
rules_file="$(cat stderr.txt|grep '1: put above udev run into'|sed 's|^.*/||')"
install -D udev-rules "$out/lib/udev/rules.d/$rules_file"
'';
meta = with lib; { meta = with lib; {
description = "Freescale/NXP I.MX chip image deploy tools"; description = "Freescale/NXP I.MX chip image deploy tools";
longDescription = '' longDescription = ''

View File

@ -2,16 +2,16 @@
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "cargo-expand"; pname = "cargo-expand";
version = "1.0.4"; version = "1.0.5";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "dtolnay"; owner = "dtolnay";
repo = pname; repo = pname;
rev = version; rev = version;
sha256 = "09jdqf1f8kl2c3k4cp8j3qqb96gclhncvfdwg2l3bmh5r10id9b3"; sha256 = "sha256-FWXSEGjTr2DewZ8NidzPdc6jhfNAUdV9qKyR7ZciWio=";
}; };
cargoSha256 = "0mx01h2zv7mpyi8s1545b7hjxn9aslzpbngrq4ii9rfqznz3r8k9"; cargoSha256 = "sha256-uvTxOZPMTCd+3WQJeVfSC5mlJ487hJKs/0Dd2C8cpcM=";
meta = with lib; { meta = with lib; {
description = description =

View File

@ -1,5 +1,5 @@
{ stdenv, lib, fetchurl, buildRubyGem, bundlerEnv, ruby, libarchive { stdenv, lib, fetchurl, buildRubyGem, bundlerEnv, ruby, libarchive
, libguestfs, qemu, writeText, withLibvirt ? stdenv.isLinux, fetchpatch , libguestfs, qemu, writeText, withLibvirt ? stdenv.isLinux
}: }:
let let

View File

@ -1,26 +1,50 @@
{ lib, stdenv, fetchurl, ncurses, xmlto }: { lib
, stdenv
, fetchurl
, ncurses
, xmlto
, docbook_xml_dtd_44
, docbook_xsl
, installShellFiles
}:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "vms-empire"; pname = "vms-empire";
version = "1.15"; version = "1.16";
src = fetchurl{ src = fetchurl{
url = "http://www.catb.org/~esr/vms-empire/${pname}-${version}.tar.gz"; url = "http://www.catb.org/~esr/${pname}/${pname}-${version}.tar.gz";
sha256 = "1vcpglkimcljb8s1dp6lzr5a0vbfxmh6xf37cmb8rf9wc3pghgn3"; hash = "sha256-XETIbt/qVU+TpamPc2WQynqqUuZqkTUnItBprjg+gPk=";
}; };
buildInputs = nativeBuildInputs = [ installShellFiles ];
[ ncurses xmlto ]; buildInputs = [
ncurses
xmlto
docbook_xml_dtd_44
docbook_xsl
];
patchPhase = '' postBuild = ''
sed -i -e 's|^install: empire\.6 uninstall|install: empire.6|' -e 's|usr/||g' Makefile xmlto man vms-empire.xml
xmlto html-nochunks vms-empire.xml
'';
installPhase = ''
runHook preInstall
install -D vms-empire -t ${placeholder "out"}/bin/
install -D vms-empire.html -t ${placeholder "out"}/share/doc/${pname}/
install -D vms-empire.desktop -t ${placeholder "out"}/share/applications/
install -D vms-empire.png -t ${placeholder "out"}/share/icons/hicolor/48x48/apps/
install -D vms-empire.xml -t ${placeholder "out"}/share/appdata/
installManPage empire.6
runHook postInstall
''; '';
hardeningDisable = [ "format" ]; hardeningDisable = [ "format" ];
makeFlags = [ "DESTDIR=$(out)" ];
meta = with lib; { meta = with lib; {
homepage = "http://catb.org/~esr/vms-empire/";
description = "The ancestor of all expand/explore/exploit/exterminate games"; description = "The ancestor of all expand/explore/exploit/exterminate games";
longDescription = '' longDescription = ''
Empire is a simulation of a full-scale war between two emperors, the Empire is a simulation of a full-scale war between two emperors, the
@ -30,11 +54,8 @@ stdenv.mkDerivation rec {
expand/explore/exploit/exterminate games, including Civilization and expand/explore/exploit/exterminate games, including Civilization and
Master of Orion. Master of Orion.
''; '';
homepage = "http://catb.org/~esr/vms-empire/"; license = licenses.gpl2Only;
license = licenses.gpl2;
maintainers = [ maintainers.AndersonTorres ]; maintainers = [ maintainers.AndersonTorres ];
platforms = platforms.linux; platforms = platforms.unix;
}; };
} }

View File

@ -70,6 +70,6 @@ in stdenv.mkDerivation rec {
homepage = "http://dpdk.org/"; homepage = "http://dpdk.org/";
license = with licenses; [ lgpl21 gpl2 bsd2 ]; license = with licenses; [ lgpl21 gpl2 bsd2 ];
platforms = platforms.linux; platforms = platforms.linux;
maintainers = with maintainers; [ domenkozar magenbluten orivej ]; maintainers = with maintainers; [ magenbluten orivej ];
}; };
} }

View File

@ -6,22 +6,26 @@
, ... } @ args: , ... } @ args:
let let
version = "5.6.19-rt12"; # updated by ./update-rt.sh version = "5.11.2-rt9"; # updated by ./update-rt.sh
branch = lib.versions.majorMinor version; branch = lib.versions.majorMinor version;
kversion = builtins.elemAt (lib.splitString "-" version) 0; kversion = builtins.elemAt (lib.splitString "-" version) 0;
in buildLinux (args // { in buildLinux (args // {
inherit version; inherit version;
# modDirVersion needs a patch number, change X.Y-rtZ to X.Y.0-rtZ.
modDirVersion = if (builtins.match "[^.]*[.][^.]*-.*" version) == null then version
else lib.replaceStrings ["-"] [".0-"] version;
src = fetchurl { src = fetchurl {
url = "mirror://kernel/linux/kernel/v5.x/linux-${kversion}.tar.xz"; url = "mirror://kernel/linux/kernel/v5.x/linux-${kversion}.tar.xz";
sha256 = "1s0yc1138sglbm4vyizl4r7hnc1l7nykdjp4063ad67yayr2ylv2"; sha256 = "186ha9fsk2qvrjkq7yvpmml938byz92m8ykcvbw4w9pmp8y5njlh";
}; };
kernelPatches = let rt-patch = { kernelPatches = let rt-patch = {
name = "rt"; name = "rt";
patch = fetchurl { patch = fetchurl {
url = "mirror://kernel/linux/kernel/projects/rt/${branch}/older/patch-${version}.patch.xz"; url = "mirror://kernel/linux/kernel/projects/rt/${branch}/older/patch-${version}.patch.xz";
sha256 = "0ia8rx0615x0z2s4ppw1244crg7c5ak07c9n3wbnz7y8bk8hyxws"; sha256 = "0707rjai04x12llvs004800pkb0axf0d1sssahf3xhgrbalg94y1";
}; };
}; in [ rt-patch ] ++ lib.remove rt-patch kernelPatches; }; in [ rt-patch ] ++ lib.remove rt-patch kernelPatches;

View File

@ -24,6 +24,6 @@ stdenv.mkDerivation rec {
homepage = "https://fedoraproject.org/wiki/Features/numad"; homepage = "https://fedoraproject.org/wiki/Features/numad";
license = licenses.lgpl21; license = licenses.lgpl21;
platforms = platforms.linux; platforms = platforms.linux;
maintainers = with maintainers; [ domenkozar ]; maintainers = with maintainers; [ ];
}; };
} }

View File

@ -31,7 +31,7 @@ stdenv.mkDerivation rec {
description = "A kernel module to create V4L2 loopback devices"; description = "A kernel module to create V4L2 loopback devices";
homepage = "https://github.com/umlaeute/v4l2loopback"; homepage = "https://github.com/umlaeute/v4l2loopback";
license = licenses.gpl2; license = licenses.gpl2;
maintainers = [ maintainers.domenkozar ]; maintainers = [ ];
platforms = platforms.linux; platforms = platforms.linux;
}; };
} }

View File

@ -18,11 +18,11 @@ let
in in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "keycloak"; pname = "keycloak";
version = "12.0.3"; version = "12.0.4";
src = fetchzip { src = fetchzip {
url = "https://github.com/keycloak/keycloak/releases/download/${version}/keycloak-${version}.zip"; url = "https://github.com/keycloak/keycloak/releases/download/${version}/keycloak-${version}.zip";
sha256 = "sha256-YUeSX02iLhrGzItnbUbK8ib7IfWG3+2k154cTPAt8Wc="; sha256 = "sha256-7DKKpuKPoSKIpfvhCvLzuyepbmixgq0+o+83FKi6Dwc=";
}; };
nativeBuildInputs = [ makeWrapper ]; nativeBuildInputs = [ makeWrapper ];

View File

@ -4,11 +4,11 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "postorius"; pname = "postorius";
version = "1.3.3"; version = "1.3.4";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "08jn23gblbkfl09qlykbpsmp39mmach3sl69h1j5cd5kkx839rwa"; sha256 = "sha256-L2ApUGQNvR0UVvodVM+wMzjYLZkegI4fT4yUiU/cibU=";
}; };
propagatedBuildInputs = [ django-mailman3 readme_renderer ]; propagatedBuildInputs = [ django-mailman3 readme_renderer ];
@ -17,10 +17,10 @@ buildPythonPackage rec {
# Tries to connect to database. # Tries to connect to database.
doCheck = false; doCheck = false;
meta = { meta = with lib; {
homepage = "https://www.gnu.org/software/mailman/"; homepage = "https://docs.mailman3.org/projects/postorius";
description = "Web-based user interface for managing GNU Mailman"; description = "Web-based user interface for managing GNU Mailman";
license = lib.licenses.gpl3; license = licenses.gpl3Plus;
maintainers = with lib.maintainers; [ globin peti ]; maintainers = with maintainers; [ globin peti ];
}; };
} }

View File

@ -26,6 +26,10 @@ buildGoModule rec {
passthru.tests = { inherit (nixosTests) loki; }; passthru.tests = { inherit (nixosTests) loki; };
buildFlagsArray = let t = "github.com/grafana/loki/pkg/build"; in ''
-ldflags=-s -w -X ${t}.Version=${version} -X ${t}.BuildUser=nix@nixpkgs -X ${t}.BuildDate=unknown -X ${t}.Branch=unknown -X ${t}.Revision=unknown
'';
doCheck = true; doCheck = true;
meta = with lib; { meta = with lib; {

View File

@ -136,7 +136,7 @@ stdenv.mkDerivation rec {
''; '';
homepage = "http://munin-monitoring.org/"; homepage = "http://munin-monitoring.org/";
license = licenses.gpl2; license = licenses.gpl2;
maintainers = [ maintainers.domenkozar maintainers.bjornfor ]; maintainers = [ maintainers.bjornfor ];
platforms = platforms.linux; platforms = platforms.linux;
}; };
} }

View File

@ -62,7 +62,7 @@ stdenv.mkDerivation (rec {
}; };
} // optionalAttrs enableUnfree { } // optionalAttrs enableUnfree {
dontPatchELF = true; dontPatchELF = true;
nativeBuildInputs = [ autoPatchelfHook ]; nativeBuildInputs = [ makeWrapper autoPatchelfHook ];
runtimeDependencies = [ zlib ]; runtimeDependencies = [ zlib ];
postFixup = '' postFixup = ''
for exe in $(find $out/modules/x-pack-ml/platform/linux-x86_64/bin -executable -type f); do for exe in $(find $out/modules/x-pack-ml/platform/linux-x86_64/bin -executable -type f); do

View File

@ -73,7 +73,7 @@ stdenv.mkDerivation (rec {
}; };
} // optionalAttrs enableUnfree { } // optionalAttrs enableUnfree {
dontPatchELF = true; dontPatchELF = true;
nativeBuildInputs = [ autoPatchelfHook ]; nativeBuildInputs = [ makeWrapper autoPatchelfHook ];
runtimeDependencies = [ zlib ]; runtimeDependencies = [ zlib ];
postFixup = '' postFixup = ''
for exe in $(find $out/modules/x-pack-ml/platform/linux-x86_64/bin -executable -type f); do for exe in $(find $out/modules/x-pack-ml/platform/linux-x86_64/bin -executable -type f); do

View File

@ -33,7 +33,7 @@ stdenv.mkDerivation rec {
description = "Open source enterprise search platform from the Apache Lucene project"; description = "Open source enterprise search platform from the Apache Lucene project";
license = licenses.asl20; license = licenses.asl20;
platforms = platforms.all; platforms = platforms.all;
maintainers = with maintainers; [ domenkozar aanderse ]; maintainers = with maintainers; [ aanderse ];
}; };
} }

View File

@ -1,6 +1,6 @@
{ lib, stdenv, fetchFromGitHub, zsh }: { lib, stdenv, fetchFromGitHub, zsh }:
# To make use of this derivation, use the `programs.zsh.enableAutoSuggestions` option # To make use of this derivation, use the `programs.zsh.autosuggestions.enable` option
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "zsh-autosuggestions"; pname = "zsh-autosuggestions";

View File

@ -1,11 +1,11 @@
{ lib, fetchFromGitHub, python }: { lib, fetchFromGitHub, python3 }:
python.pkgs.buildPythonApplication rec { python3.pkgs.buildPythonApplication rec {
pname = "gixy"; pname = "gixy";
version = "0.1.20"; version = "0.1.20";
# package is only compatible with python 2.7 and 3.5+ # package is only compatible with python 2.7 and 3.5+
disabled = with python.pkgs; !(pythonAtLeast "3.5" || isPy27); disabled = with python3.pkgs; !(pythonAtLeast "3.5" || isPy27);
# fetching from GitHub because the PyPi source is missing the tests # fetching from GitHub because the PyPi source is missing the tests
src = fetchFromGitHub { src = fetchFromGitHub {
@ -19,7 +19,7 @@ python.pkgs.buildPythonApplication rec {
sed -ie '/argparse/d' setup.py sed -ie '/argparse/d' setup.py
''; '';
propagatedBuildInputs = with python.pkgs; [ propagatedBuildInputs = with python3.pkgs; [
cached-property cached-property
ConfigArgParse ConfigArgParse
pyparsing pyparsing

View File

@ -297,7 +297,7 @@ in pythonPackages.buildPythonApplication rec {
description = "Music tagger and library organizer"; description = "Music tagger and library organizer";
homepage = "http://beets.io"; homepage = "http://beets.io";
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ aszlig domenkozar doronbehar lovesegfault pjones ]; maintainers = with maintainers; [ aszlig doronbehar lovesegfault pjones ];
platforms = platforms.linux; platforms = platforms.linux;
}; };
} }

View File

@ -41,7 +41,7 @@ stdenv.mkDerivation rec {
description = "Enterprise ready, Network Backup Tool"; description = "Enterprise ready, Network Backup Tool";
homepage = "http://bacula.org/"; homepage = "http://bacula.org/";
license = with licenses; [ agpl3Only bsd2 ]; license = with licenses; [ agpl3Only bsd2 ];
maintainers = with maintainers; [ domenkozar lovek323 eleanor ]; maintainers = with maintainers; [ lovek323 eleanor ];
platforms = platforms.all; platforms = platforms.all;
}; };
} }

Some files were not shown because too many files have changed in this diff Show More