Merge master into staging-next
This commit is contained in:
commit
cf22d5fee7
@ -5896,6 +5896,12 @@
|
|||||||
githubId = 22836301;
|
githubId = 22836301;
|
||||||
name = "Mateusz Mazur";
|
name = "Mateusz Mazur";
|
||||||
};
|
};
|
||||||
|
mbaeten = {
|
||||||
|
email = "mbaeten@users.noreply.github.com";
|
||||||
|
github = "mbaeten";
|
||||||
|
githubId = 2649304;
|
||||||
|
name = "M. Baeten";
|
||||||
|
};
|
||||||
mbakke = {
|
mbakke = {
|
||||||
email = "mbakke@fastmail.com";
|
email = "mbakke@fastmail.com";
|
||||||
github = "mbakke";
|
github = "mbakke";
|
||||||
|
@ -83,17 +83,12 @@
|
|||||||
VirtualBox settings (Machine / Settings / Shared Folders, then click on the
|
VirtualBox settings (Machine / Settings / Shared Folders, then click on the
|
||||||
"Add" icon). Add the following to the
|
"Add" icon). Add the following to the
|
||||||
<literal>/etc/nixos/configuration.nix</literal> to auto-mount them. If you do
|
<literal>/etc/nixos/configuration.nix</literal> to auto-mount them. If you do
|
||||||
not add <literal>"nofail"</literal>, the system will not boot properly. The
|
not add <literal>"nofail"</literal>, the system will not boot properly.
|
||||||
same goes for disabling <literal>rngd</literal> which is normally used to get
|
|
||||||
randomness but this does not work in virtual machines.
|
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<programlisting>
|
<programlisting>
|
||||||
{ config, pkgs, ...} :
|
{ config, pkgs, ...} :
|
||||||
{
|
{
|
||||||
security.rngd.enable = false; // otherwise vm will not boot
|
|
||||||
...
|
|
||||||
|
|
||||||
fileSystems."/virtualboxshare" = {
|
fileSystems."/virtualboxshare" = {
|
||||||
fsType = "vboxsf";
|
fsType = "vboxsf";
|
||||||
device = "nameofthesharedfolder";
|
device = "nameofthesharedfolder";
|
||||||
|
@ -509,6 +509,15 @@ self: super:
|
|||||||
<varname>services.flashpolicyd</varname> module.
|
<varname>services.flashpolicyd</varname> module.
|
||||||
</para>
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
|
<listitem>
|
||||||
|
<para>
|
||||||
|
The <literal>security.rngd</literal> module has been removed.
|
||||||
|
It was disabled by default in 20.09 as it was functionally redundant
|
||||||
|
with krngd in the linux kernel. It is not necessary for any device that the kernel recognises
|
||||||
|
as an hardware RNG, as it will automatically run the krngd task to periodically collect random
|
||||||
|
data from the device and mix it into the kernel's RNG.
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
</itemizedlist>
|
</itemizedlist>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
@ -185,8 +185,6 @@ in
|
|||||||
{ description = "Initialisation of swap device ${sw.device}";
|
{ description = "Initialisation of swap device ${sw.device}";
|
||||||
wantedBy = [ "${realDevice'}.swap" ];
|
wantedBy = [ "${realDevice'}.swap" ];
|
||||||
before = [ "${realDevice'}.swap" ];
|
before = [ "${realDevice'}.swap" ];
|
||||||
# If swap is encrypted, depending on rngd resolves a possible entropy starvation during boot
|
|
||||||
after = mkIf (config.security.rngd.enable && sw.randomEncryption.enable) [ "rngd.service" ];
|
|
||||||
path = [ pkgs.util-linux ] ++ optional sw.randomEncryption.enable pkgs.cryptsetup;
|
path = [ pkgs.util-linux ] ++ optional sw.randomEncryption.enable pkgs.cryptsetup;
|
||||||
|
|
||||||
script =
|
script =
|
||||||
|
@ -1,56 +1,16 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
{ lib, ... }:
|
||||||
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.security.rngd;
|
removed = k: lib.mkRemovedOptionModule [ "security" "rngd" k ];
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options = {
|
imports = [
|
||||||
security.rngd = {
|
(removed "enable" ''
|
||||||
enable = mkOption {
|
rngd is not necessary for any device that the kernel recognises
|
||||||
type = types.bool;
|
as an hardware RNG, as it will automatically run the krngd task
|
||||||
default = false;
|
to periodically collect random data from the device and mix it
|
||||||
description = ''
|
into the kernel's RNG.
|
||||||
Whether to enable the rng daemon. Devices that the kernel recognises
|
'')
|
||||||
as entropy sources are handled automatically by krngd.
|
(removed "debug"
|
||||||
'';
|
"The rngd module was removed, so its debug option does nothing.")
|
||||||
};
|
];
|
||||||
debug = mkOption {
|
|
||||||
type = types.bool;
|
|
||||||
default = false;
|
|
||||||
description = "Whether to enable debug output (-d).";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
|
||||||
systemd.services.rngd = {
|
|
||||||
bindsTo = [ "dev-random.device" ];
|
|
||||||
|
|
||||||
after = [ "dev-random.device" ];
|
|
||||||
|
|
||||||
# Clean shutdown without DefaultDependencies
|
|
||||||
conflicts = [ "shutdown.target" ];
|
|
||||||
before = [
|
|
||||||
"sysinit.target"
|
|
||||||
"shutdown.target"
|
|
||||||
];
|
|
||||||
|
|
||||||
description = "Hardware RNG Entropy Gatherer Daemon";
|
|
||||||
|
|
||||||
# rngd may have to start early to avoid entropy starvation during boot with encrypted swap
|
|
||||||
unitConfig.DefaultDependencies = false;
|
|
||||||
serviceConfig = {
|
|
||||||
ExecStart = "${pkgs.rng-tools}/sbin/rngd -f"
|
|
||||||
+ optionalString cfg.debug " -d";
|
|
||||||
# PrivateTmp would introduce a circular dependency if /tmp is on tmpfs and swap is encrypted,
|
|
||||||
# thus depending on rngd before swap, while swap depends on rngd to avoid entropy starvation.
|
|
||||||
NoNewPrivileges = true;
|
|
||||||
PrivateNetwork = true;
|
|
||||||
ProtectSystem = "full";
|
|
||||||
ProtectHome = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
@ -40,8 +40,6 @@ in {
|
|||||||
|
|
||||||
environment.systemPackages = [ config.boot.kernelPackages.hyperv-daemons.bin ];
|
environment.systemPackages = [ config.boot.kernelPackages.hyperv-daemons.bin ];
|
||||||
|
|
||||||
security.rngd.enable = false;
|
|
||||||
|
|
||||||
# enable hotadding cpu/memory
|
# enable hotadding cpu/memory
|
||||||
services.udev.packages = lib.singleton (pkgs.writeTextFile {
|
services.udev.packages = lib.singleton (pkgs.writeTextFile {
|
||||||
name = "hyperv-cpu-and-memory-hotadd-udev-rules";
|
name = "hyperv-cpu-and-memory-hotadd-udev-rules";
|
||||||
|
103
pkgs/applications/audio/pragha/default.nix
Normal file
103
pkgs/applications/audio/pragha/default.nix
Normal file
@ -0,0 +1,103 @@
|
|||||||
|
{ lib
|
||||||
|
, intltool
|
||||||
|
, mkDerivation
|
||||||
|
, installShellFiles
|
||||||
|
, pkg-config
|
||||||
|
, fetchFromGitHub
|
||||||
|
, dbus-glib
|
||||||
|
, desktop-file-utils
|
||||||
|
, hicolor-icon-theme
|
||||||
|
, pcre
|
||||||
|
, qtbase
|
||||||
|
, sqlite
|
||||||
|
, taglib
|
||||||
|
, zlib
|
||||||
|
, gtk3
|
||||||
|
, libpeas
|
||||||
|
, libcddb
|
||||||
|
, libcdio
|
||||||
|
, gst_all_1, withGstPlugins ? true
|
||||||
|
, glyr, withGlyr ? true
|
||||||
|
, liblastfmSF, withLastfm ? true
|
||||||
|
, libcdio-paranoia, withCD ? true
|
||||||
|
, keybinder3, withKeybinder ? false
|
||||||
|
, libnotify, withLibnotify ? false
|
||||||
|
, libsoup, withLibsoup ? false
|
||||||
|
, libgudev, withGudev ? false # experimental
|
||||||
|
, libmtp, withMtp ? false # experimental
|
||||||
|
, xfce, withXfce4ui ? false
|
||||||
|
, totem-pl-parser, withTotemPlParser ? false
|
||||||
|
# , grilo, withGrilo ? false
|
||||||
|
# , rygel, withRygel ? true
|
||||||
|
}:
|
||||||
|
|
||||||
|
assert withGlyr -> withLastfm;
|
||||||
|
assert withLastfm -> withCD;
|
||||||
|
|
||||||
|
mkDerivation rec {
|
||||||
|
pname = "pragha";
|
||||||
|
version = "1.3.4";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "pragha-music-player";
|
||||||
|
repo = "pragha";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "sha256:0n8gx8amg5l9g4w7s4agjf8mlmpgjydgzx3vryp9lzzs9xrd5vqh";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
intltool
|
||||||
|
pkg-config
|
||||||
|
xfce.xfce4-dev-tools
|
||||||
|
desktop-file-utils
|
||||||
|
installShellFiles
|
||||||
|
];
|
||||||
|
|
||||||
|
buildInputs = with gst_all_1; [
|
||||||
|
dbus-glib
|
||||||
|
gstreamer
|
||||||
|
gst-plugins-base
|
||||||
|
gtk3
|
||||||
|
hicolor-icon-theme
|
||||||
|
libpeas
|
||||||
|
pcre
|
||||||
|
qtbase
|
||||||
|
sqlite
|
||||||
|
taglib
|
||||||
|
zlib
|
||||||
|
]
|
||||||
|
++ lib.optionals withGstPlugins [ gst-plugins-good gst-plugins-bad gst-plugins-ugly ]
|
||||||
|
++ lib.optionals withCD [ libcddb libcdio libcdio-paranoia ]
|
||||||
|
++ lib.optional withGudev libgudev
|
||||||
|
++ lib.optional withKeybinder keybinder3
|
||||||
|
++ lib.optional withLibnotify libnotify
|
||||||
|
++ lib.optional withLastfm liblastfmSF
|
||||||
|
++ lib.optional withGlyr glyr
|
||||||
|
++ lib.optional withLibsoup libsoup
|
||||||
|
++ lib.optional withMtp libmtp
|
||||||
|
++ lib.optional withXfce4ui xfce.libxfce4ui
|
||||||
|
++ lib.optional withTotemPlParser totem-pl-parser
|
||||||
|
# ++ lib.optional withGrilo grilo
|
||||||
|
# ++ lib.optional withRygel rygel
|
||||||
|
;
|
||||||
|
|
||||||
|
CFLAGS = [ "-DHAVE_PARANOIA_NEW_INCLUDES" ];
|
||||||
|
|
||||||
|
NIX_CFLAGS_COMPILE = "-I${lib.getDev gst_all_1.gst-plugins-base}/include/gstreamer-1.0";
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
qtWrapperArgs+=(--prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0")
|
||||||
|
|
||||||
|
install -m 444 data/${pname}.desktop $out/share/applications
|
||||||
|
install -d $out/share/pixmaps
|
||||||
|
installManPage data/${pname}.1
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "A lightweight GTK+ music manager - fork of Consonance Music Manager";
|
||||||
|
homepage = "https://pragha-music-player.github.io/";
|
||||||
|
license = licenses.gpl3Plus;
|
||||||
|
maintainers = with maintainers; [ mbaeten ];
|
||||||
|
platforms = platforms.unix;
|
||||||
|
};
|
||||||
|
}
|
@ -2,13 +2,13 @@
|
|||||||
|
|
||||||
buildGoPackage rec {
|
buildGoPackage rec {
|
||||||
pname = "cointop";
|
pname = "cointop";
|
||||||
version = "1.6.0";
|
version = "1.6.2";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "miguelmota";
|
owner = "miguelmota";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-P2LR42Qn5bBF5xcfCbxiGFBwkW/kAKVGiyED37OdZLo=";
|
sha256 = "sha256-4Ae8lzaec7JeYfmeLleatUS/xQUjea7O4XJ9DOgJIMs=";
|
||||||
};
|
};
|
||||||
|
|
||||||
goPackagePath = "github.com/miguelmota/cointop";
|
goPackagePath = "github.com/miguelmota/cointop";
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ symlinkJoin, lib, rofi-unwrapped, makeWrapper, hicolor-icon-theme, theme ? null, plugins ? [] }:
|
{ symlinkJoin, lib, rofi-unwrapped, makeWrapper, wrapGAppsHook, gdk-pixbuf, hicolor-icon-theme, theme ? null, plugins ? [] }:
|
||||||
|
|
||||||
symlinkJoin {
|
symlinkJoin {
|
||||||
name = "rofi-${rofi-unwrapped.version}";
|
name = "rofi-${rofi-unwrapped.version}";
|
||||||
@ -7,16 +7,23 @@ symlinkJoin {
|
|||||||
rofi-unwrapped.out
|
rofi-unwrapped.out
|
||||||
] ++ (lib.forEach plugins (p: p.out));
|
] ++ (lib.forEach plugins (p: p.out));
|
||||||
|
|
||||||
buildInputs = [ makeWrapper ];
|
nativeBuildInputs = [ makeWrapper wrapGAppsHook ];
|
||||||
|
buildInputs = [ gdk-pixbuf ];
|
||||||
|
|
||||||
preferLocalBuild = true;
|
preferLocalBuild = true;
|
||||||
passthru.unwrapped = rofi-unwrapped;
|
passthru.unwrapped = rofi-unwrapped;
|
||||||
|
|
||||||
|
dontWrapGApps = true;
|
||||||
|
|
||||||
postBuild = ''
|
postBuild = ''
|
||||||
rm -rf $out/bin
|
rm -rf $out/bin
|
||||||
mkdir $out/bin
|
mkdir $out/bin
|
||||||
ln -s ${rofi-unwrapped}/bin/* $out/bin
|
ln -s ${rofi-unwrapped}/bin/* $out/bin
|
||||||
|
|
||||||
rm $out/bin/rofi
|
rm $out/bin/rofi
|
||||||
|
|
||||||
|
gappsWrapperArgsHook
|
||||||
makeWrapper ${rofi-unwrapped}/bin/rofi $out/bin/rofi \
|
makeWrapper ${rofi-unwrapped}/bin/rofi $out/bin/rofi \
|
||||||
|
''${gappsWrapperArgs[@]} \
|
||||||
--prefix XDG_DATA_DIRS : ${hicolor-icon-theme}/share \
|
--prefix XDG_DATA_DIRS : ${hicolor-icon-theme}/share \
|
||||||
${lib.optionalString (plugins != []) ''--prefix XDG_DATA_DIRS : ${lib.concatStringsSep ":" (lib.forEach plugins (p: "${p.out}/share"))}''} \
|
${lib.optionalString (plugins != []) ''--prefix XDG_DATA_DIRS : ${lib.concatStringsSep ":" (lib.forEach plugins (p: "${p.out}/share"))}''} \
|
||||||
${lib.optionalString (theme != null) ''--add-flags "-theme ${theme}"''} \
|
${lib.optionalString (theme != null) ''--add-flags "-theme ${theme}"''} \
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
{ lib, stdenv, fetchFromGitHub
|
{ lib
|
||||||
|
, stdenv
|
||||||
|
, fetchFromGitHub
|
||||||
, meson
|
, meson
|
||||||
, ninja
|
, ninja
|
||||||
, wayland
|
, wayland
|
||||||
@ -9,22 +11,26 @@
|
|||||||
, scdoc
|
, scdoc
|
||||||
, libnotify
|
, libnotify
|
||||||
, glib
|
, glib
|
||||||
|
, wrapGAppsHook
|
||||||
|
, hicolor-icon-theme
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "swappy";
|
pname = "swappy";
|
||||||
version = "1.3.0";
|
version = "1.3.1";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "jtheoof";
|
owner = "jtheoof";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "1bm184fbzylymh4kr7n8gy9plsdxif8xahc1zmkgdg1a0kwgws2x";
|
sha256 = "12z643c7vzffhjsxaz1lak99i4nwm688pha0hh4pg69jf5wz5xx3";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ glib meson ninja pkg-config scdoc ];
|
nativeBuildInputs = [ glib meson ninja pkg-config scdoc wrapGAppsHook ];
|
||||||
|
|
||||||
buildInputs = [ cairo pango gtk libnotify wayland glib ];
|
buildInputs = [
|
||||||
|
cairo pango gtk libnotify wayland glib hicolor-icon-theme
|
||||||
|
];
|
||||||
|
|
||||||
strictDeps = true;
|
strictDeps = true;
|
||||||
|
|
||||||
|
@ -2,16 +2,16 @@
|
|||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "dnscontrol";
|
pname = "dnscontrol";
|
||||||
version = "3.6.0";
|
version = "3.7.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "StackExchange";
|
owner = "StackExchange";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-I1PaDHPocQuoSOyfnxDWwIR+7S9l/odX4SCeAae/jv8=";
|
sha256 = "sha256-el94Iq7/+1FfGpqbhKEO6FGpaCxoueoc/+Se+WfT+G0=";
|
||||||
};
|
};
|
||||||
|
|
||||||
vendorSha256 = "sha256-H0i5MoVX5O0CgHOvefDEyzBWvBZvJZUrC9xBq9CHgeE=";
|
vendorSha256 = "sha256-MSHg1RWjbXm1pf6HTyJL4FcnLuacL9fO1F6zbouVkWg=";
|
||||||
|
|
||||||
subPackages = [ "." ];
|
subPackages = [ "." ];
|
||||||
|
|
||||||
|
@ -5,13 +5,13 @@ let
|
|||||||
|
|
||||||
in buildPythonApplication rec {
|
in buildPythonApplication rec {
|
||||||
pname = "git-cola";
|
pname = "git-cola";
|
||||||
version = "3.8";
|
version = "3.9";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "git-cola";
|
owner = "git-cola";
|
||||||
repo = "git-cola";
|
repo = "git-cola";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "1qxv2k8lxcxpqx46ka7f042xk90xns5w9lc4009cxmsqvcdba03a";
|
sha256 = "11186pdgaw5p4iv10dqcnynf5pws2v9nhqqqca7z5b7m20fpfjl7";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ git gettext ];
|
buildInputs = [ git gettext ];
|
||||||
|
@ -39,7 +39,7 @@ stdenv.mkDerivation rec {
|
|||||||
strictDeps = true;
|
strictDeps = true;
|
||||||
|
|
||||||
configureFlags = [ "--with-libgpg-error-prefix=${libgpgerror.dev}" ]
|
configureFlags = [ "--with-libgpg-error-prefix=${libgpgerror.dev}" ]
|
||||||
++ lib.optional stdenv.hostPlatform.isMusl "--disable-asm";
|
++ lib.optional (stdenv.hostPlatform.isMusl || (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64)) "--disable-asm"; # for darwin see https://dev.gnupg.org/T5157
|
||||||
|
|
||||||
# Necessary to generate correct assembly when compiling for aarch32 on
|
# Necessary to generate correct assembly when compiling for aarch32 on
|
||||||
# aarch64
|
# aarch64
|
||||||
|
@ -1,31 +1,22 @@
|
|||||||
{ lib, stdenv, fetchFromGitHub, python3, wafHook, fetchpatch }:
|
{ lib, stdenv, fetchFromGitHub }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "termbox";
|
pname = "termbox";
|
||||||
version = "1.1.2";
|
version = "1.1.4";
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "nsf";
|
owner = "termbox";
|
||||||
repo = "termbox";
|
repo = "termbox";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "08yqxzb8fny8806p7x8a6f3phhlbfqdd7dhkv25calswj7w1ssvs";
|
sha256 = "075swv6ajx8m424dbmgbf6fs6nd5q004gjpvx48gkxmnf9spvykl";
|
||||||
};
|
};
|
||||||
|
|
||||||
# patch which updates the `waf` version used to build
|
makeFlags = [ "prefix=${placeholder "out"}" ];
|
||||||
# to make the package buildable on Python 3.7
|
|
||||||
patches = [
|
|
||||||
(fetchpatch {
|
|
||||||
url = "https://github.com/nsf/termbox/commit/6fe63ac3ad63dc2c3ac45b770541cc8b7a1d2db7.patch";
|
|
||||||
sha256 = "1s5747v51sdwvpsg6k9y1j60yn9f63qnylkgy8zrsifjzzd5fzl6";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
nativeBuildInputs = [ python3 wafHook ];
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Library for writing text-based user interfaces";
|
description = "Library for writing text-based user interfaces";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
homepage = "https://github.com/nsf/termbox#readme";
|
homepage = "https://github.com/termbox/termbox#readme";
|
||||||
downloadPage = "https://github.com/nsf/termbox/releases";
|
downloadPage = "https://github.com/termbox/termbox/releases";
|
||||||
maintainers = with maintainers; [ fgaz ];
|
maintainers = with maintainers; [ fgaz ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,10 @@
|
|||||||
{ lib, stdenv, fetchurl, ocaml, findlib, ocamlbuild, ounit }:
|
{ lib, stdenv, fetchurl, ocaml, findlib, ocamlbuild, ounit }:
|
||||||
|
|
||||||
|
let
|
||||||
|
# ounit is only available for OCaml >= 4.04
|
||||||
|
doCheck = lib.versionAtLeast ocaml.version "4.04";
|
||||||
|
in
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
pname = "ocamlmod";
|
pname = "ocamlmod";
|
||||||
version = "0.0.9";
|
version = "0.0.9";
|
||||||
@ -9,13 +14,15 @@ stdenv.mkDerivation {
|
|||||||
sha256 = "0cgp9qqrq7ayyhddrmqmq1affvfqcn722qiakjq4dkywvp67h4aa";
|
sha256 = "0cgp9qqrq7ayyhddrmqmq1affvfqcn722qiakjq4dkywvp67h4aa";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ ocaml findlib ocamlbuild ounit ];
|
buildInputs = [ ocaml findlib ocamlbuild ];
|
||||||
|
|
||||||
configurePhase = "ocaml setup.ml -configure --prefix $out --enable-tests";
|
configurePhase = "ocaml setup.ml -configure --prefix $out"
|
||||||
|
+ lib.optionalString doCheck " --enable-tests";
|
||||||
buildPhase = "ocaml setup.ml -build";
|
buildPhase = "ocaml setup.ml -build";
|
||||||
installPhase = "ocaml setup.ml -install";
|
installPhase = "ocaml setup.ml -install";
|
||||||
|
|
||||||
doCheck = true;
|
inherit doCheck;
|
||||||
|
checkInputs = [ ounit ];
|
||||||
|
|
||||||
checkPhase = "ocaml setup.ml -test";
|
checkPhase = "ocaml setup.ml -test";
|
||||||
|
|
||||||
|
@ -7,16 +7,16 @@
|
|||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = "cargo-deny";
|
pname = "cargo-deny";
|
||||||
version = "0.8.5";
|
version = "0.8.7";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "EmbarkStudios";
|
owner = "EmbarkStudios";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "01czsnhlvs78fpx1kpi75386657jmlrqpsj4474nxmgcs75igncx";
|
sha256 = "sha256-LXc4PFJ1FbdF3yotqqOkhhe+MKGZ4sqJgxAvDml9GeA=";
|
||||||
};
|
};
|
||||||
|
|
||||||
cargoSha256 = "1d5vh6cifkvqxmbgc2z9259q8879fjw016z959hfivv38rragqbr";
|
cargoSha256 = "sha256-4FFyRhmMpzKmKrvU2bmGHWUnLAbTDU1bPv7RfhQfYeY=";
|
||||||
|
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
|
@ -2,16 +2,16 @@
|
|||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "yq-go";
|
pname = "yq-go";
|
||||||
version = "4.5.0";
|
version = "4.6.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "mikefarah";
|
owner = "mikefarah";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
repo = "yq";
|
repo = "yq";
|
||||||
sha256 = "sha256-ehr9mCUbwQQSLR0iYoiJ3Xvgu+7Ue9Xvru9kAUkPCuQ=";
|
sha256 = "sha256-9D00I34pfoiI5cqXjsVLTT6XbFUYxgGit0ZuYeWSEyE=";
|
||||||
};
|
};
|
||||||
|
|
||||||
vendorSha256 = "sha256-CUELy6ajaoVzomY5lMen24DFJke3IyFzqWYyF7sws5g=";
|
vendorSha256 = "sha256-66ccHSKpl6yB/NVhZ1X0dv4wnGCJAMvZhpKu2vF+QT4=";
|
||||||
|
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{ lib, fetchFromGitHub, buildLinux, linux_zen, ... } @ args:
|
{ lib, fetchFromGitHub, buildLinux, linux_zen, ... } @ args:
|
||||||
|
|
||||||
let
|
let
|
||||||
version = "5.10.10";
|
version = "5.10.15";
|
||||||
suffix = "lqx2";
|
suffix = "lqx2";
|
||||||
in
|
in
|
||||||
|
|
||||||
@ -14,7 +14,7 @@ buildLinux (args // {
|
|||||||
owner = "zen-kernel";
|
owner = "zen-kernel";
|
||||||
repo = "zen-kernel";
|
repo = "zen-kernel";
|
||||||
rev = "v${version}-${suffix}";
|
rev = "v${version}-${suffix}";
|
||||||
sha256 = "1cjgx9qjfkiaalqkcdmibsrq2frwd621rwcg6w05ms4w9lnwi3af";
|
sha256 = "11dgaqj1xr5hq6wxscrkln68dwqq4lakvfkr646x2yfynry1jqjk";
|
||||||
};
|
};
|
||||||
|
|
||||||
extraMeta = {
|
extraMeta = {
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
{ lib, fetchFromGitHub, buildLinux, ... } @ args:
|
{ lib, fetchFromGitHub, buildLinux, ... } @ args:
|
||||||
|
|
||||||
let
|
let
|
||||||
version = "5.10.10";
|
version = "5.10.15";
|
||||||
suffix = "zen1";
|
suffix = "zen2";
|
||||||
in
|
in
|
||||||
|
|
||||||
buildLinux (args // {
|
buildLinux (args // {
|
||||||
@ -14,7 +14,7 @@ buildLinux (args // {
|
|||||||
owner = "zen-kernel";
|
owner = "zen-kernel";
|
||||||
repo = "zen-kernel";
|
repo = "zen-kernel";
|
||||||
rev = "v${version}-${suffix}";
|
rev = "v${version}-${suffix}";
|
||||||
sha256 = "0jsi2q8k1w5zs5l6z1brm2mxpl9arv6n6linc8yj6xc75nydw6w4";
|
sha256 = "18qgh79hi1ph6x16sbvq36icv7c5bkdvh193wqjnbvwf0yph09as";
|
||||||
};
|
};
|
||||||
|
|
||||||
extraMeta = {
|
extraMeta = {
|
||||||
|
@ -2,11 +2,11 @@
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "bdf2psf";
|
pname = "bdf2psf";
|
||||||
version = "1.200";
|
version = "1.201";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://debian/pool/main/c/console-setup/bdf2psf_${version}_all.deb";
|
url = "mirror://debian/pool/main/c/console-setup/bdf2psf_${version}_all.deb";
|
||||||
sha256 = "07z686h2fv9b3446fcym0sfzxwgkm9cc4bd3zhpv6j8bdfadnjxw";
|
sha256 = "sha256-XVaROIxyNBBFoXf+K1mv4mW8wWozqMcs1cgaWj8L8Q0=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ dpkg ];
|
nativeBuildInputs = [ dpkg ];
|
||||||
@ -14,10 +14,16 @@ stdenv.mkDerivation rec {
|
|||||||
dontConfigure = true;
|
dontConfigure = true;
|
||||||
dontBuild = true;
|
dontBuild = true;
|
||||||
|
|
||||||
unpackPhase = "dpkg-deb -x $src .";
|
unpackPhase = ''
|
||||||
|
runHook preUnpack
|
||||||
|
dpkg-deb -x $src .
|
||||||
|
runHook postUnpack
|
||||||
|
'';
|
||||||
installPhase = "
|
installPhase = "
|
||||||
|
runHook preInstall
|
||||||
substituteInPlace usr/bin/bdf2psf --replace /usr/bin/perl ${perl}/bin/perl
|
substituteInPlace usr/bin/bdf2psf --replace /usr/bin/perl ${perl}/bin/perl
|
||||||
mv usr $out
|
mv usr $out
|
||||||
|
runHook postInstall
|
||||||
";
|
";
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
@ -26,7 +32,7 @@ stdenv.mkDerivation rec {
|
|||||||
longDescription = ''
|
longDescription = ''
|
||||||
Font converter to generate console fonts from BDF source fonts
|
Font converter to generate console fonts from BDF source fonts
|
||||||
'';
|
'';
|
||||||
license = licenses.gpl2;
|
license = licenses.gpl2Plus;
|
||||||
maintainers = with maintainers; [ rnhmjoj vrthra ];
|
maintainers = with maintainers; [ rnhmjoj vrthra ];
|
||||||
platforms = platforms.unix;
|
platforms = platforms.unix;
|
||||||
};
|
};
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
{ lib, buildGoModule, fetchFromGitHub }:
|
{ lib
|
||||||
|
, buildGoModule
|
||||||
|
, fetchFromGitHub
|
||||||
|
}:
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "powerline-go";
|
pname = "powerline-go";
|
||||||
@ -17,7 +20,9 @@ buildGoModule rec {
|
|||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A Powerline like prompt for Bash, ZSH and Fish";
|
description = "A Powerline like prompt for Bash, ZSH and Fish";
|
||||||
license = licenses.gpl3;
|
homepage = "https://github.com/justjanne/powerline-go";
|
||||||
|
changelog = "https://github.com/justjanne/powerline-go/releases/tag/v${version}";
|
||||||
|
license = licenses.gpl3Plus;
|
||||||
platforms = platforms.unix;
|
platforms = platforms.unix;
|
||||||
maintainers = with maintainers; [ sifmelcara ];
|
maintainers = with maintainers; [ sifmelcara ];
|
||||||
};
|
};
|
||||||
|
@ -2,16 +2,16 @@
|
|||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = "emplace";
|
pname = "emplace";
|
||||||
version = "1.0.0";
|
version = "1.1.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "tversteeg";
|
owner = "tversteeg";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-dDFc13IVD4f5UgiHXAcqRKoZEPTn/iBOogT3XfdstK0=";
|
sha256 = "sha256-FO3N5Dyk87GzPEhQDX2QVDulw15BnpsljawY2RFy2Qk=";
|
||||||
};
|
};
|
||||||
|
|
||||||
cargoSha256 = "sha256-QsYOR7tk5cRCF0+xkpJ/F+Z3pjBPxTDFvA1gEi82AOQ=";
|
cargoSha256 = "sha256-/XZ88ChOCLP5/pZ9UkAAWqO/jFUwbo5FJQ2GZip1gP4=";
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Mirror installed software on multiple machines";
|
description = "Mirror installed software on multiple machines";
|
||||||
|
@ -5,16 +5,16 @@
|
|||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "terrascan";
|
pname = "terrascan";
|
||||||
version = "1.3.2";
|
version = "1.3.3";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "accurics";
|
owner = "accurics";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-RZFh9RVU8RwtLGIP7OWnf0yNsXfElqWSXieljqp8ahU=";
|
sha256 = "sha256-mPd4HsWbPUNJTUNjQ5zQztoXZy2b9iLksdGKAjp0A58=";
|
||||||
};
|
};
|
||||||
|
|
||||||
vendorSha256 = "sha256-Ya/33ocPhY5OSnCEyULsOIHaxwb1yNEle3JEYo/7/Yk=";
|
vendorSha256 = "sha256-eNQTJHqOCOTAPO+vil6rkV9bNWZIdXxGQPE4IpETFtA=";
|
||||||
|
|
||||||
# tests want to download a vulnerable Terraform project
|
# tests want to download a vulnerable Terraform project
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
@ -23814,6 +23814,8 @@ in
|
|||||||
|
|
||||||
ncmpcpp = callPackage ../applications/audio/ncmpcpp { };
|
ncmpcpp = callPackage ../applications/audio/ncmpcpp { };
|
||||||
|
|
||||||
|
pragha = libsForQt5.callPackage ../applications/audio/pragha { };
|
||||||
|
|
||||||
rofi-mpd = callPackage ../applications/audio/rofi-mpd { };
|
rofi-mpd = callPackage ../applications/audio/rofi-mpd { };
|
||||||
|
|
||||||
rofi-calc = callPackage ../applications/science/math/rofi-calc { };
|
rofi-calc = callPackage ../applications/science/math/rofi-calc { };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user