Merge staging-next into staging

This commit is contained in:
github-actions[bot] 2021-01-21 01:19:31 +00:00 committed by GitHub
commit e5fef074d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
90 changed files with 637 additions and 213 deletions

View File

@ -90,9 +90,6 @@ insert_final_newline = unset
indent_style = unset indent_style = unset
trim_trailing_whitespace = unset trim_trailing_whitespace = unset
[pkgs/development/{perl-modules,ocaml-modules,tools/ocaml}/**]
indent_style = unset
[pkgs/servers/dict/wordnet_structures.py] [pkgs/servers/dict/wordnet_structures.py]
trim_trailing_whitespace = unset trim_trailing_whitespace = unset

View File

@ -178,6 +178,12 @@ args.stdenv.mkDerivation (args // {
</programlisting> </programlisting>
</para> </para>
</listitem> </listitem>
<listitem>
<para>
Arguments should be listed in the order they are used, with the
exception of <varname>lib</varname>, which always goes first.
</para>
</listitem>
<listitem> <listitem>
<para> <para>
Prefer using the top-level <varname>lib</varname> over its alias Prefer using the top-level <varname>lib</varname> over its alias

View File

@ -42,8 +42,8 @@ It also takes other standard `mkDerivation` attributes, they are added as such,
Here is a simple package example. It is a pure Coq library, thus it depends on Coq. It builds on the Mathematical Components library, thus it also takes some `mathcomp` derivations as `extraBuildInputs`. Here is a simple package example. It is a pure Coq library, thus it depends on Coq. It builds on the Mathematical Components library, thus it also takes some `mathcomp` derivations as `extraBuildInputs`.
```nix ```nix
{ coq, mkCoqDerivation, mathcomp, mathcomp-finmap, mathcomp-bigenough, { lib, mkCoqDerivation, version ? null
lib, version ? null }: , coq, mathcomp, mathcomp-finmap, mathcomp-bigenough }:
with lib; mkCoqDerivation { with lib; mkCoqDerivation {
/* namePrefix leads to e.g. `name = coq8.11-mathcomp1.11-multinomials-1.5.2` */ /* namePrefix leads to e.g. `name = coq8.11-mathcomp1.11-multinomials-1.5.2` */
namePrefix = [ "coq" "mathcomp" ]; namePrefix = [ "coq" "mathcomp" ];

View File

@ -69,11 +69,11 @@ prelude
As an example of how a Nix expression for an Idris package can be created, here is the one for `idrisPackages.yaml`: As an example of how a Nix expression for an Idris package can be created, here is the one for `idrisPackages.yaml`:
```nix ```nix
{ build-idris-package { lib
, build-idris-package
, fetchFromGitHub , fetchFromGitHub
, contrib , contrib
, lightyear , lightyear
, lib
}: }:
build-idris-package { build-idris-package {
name = "yaml"; name = "yaml";
@ -94,11 +94,11 @@ build-idris-package {
sha256 = "1g4pi0swmg214kndj85hj50ccmckni7piprsxfdzdfhg87s0avw7"; sha256 = "1g4pi0swmg214kndj85hj50ccmckni7piprsxfdzdfhg87s0avw7";
}; };
meta = { meta = with lib; {
description = "Idris YAML lib"; description = "Idris YAML lib";
homepage = "https://github.com/Heather/Idris.Yaml"; homepage = "https://github.com/Heather/Idris.Yaml";
license = lib.licenses.mit; license = licenses.mit;
maintainers = [ lib.maintainers.brainrape ]; maintainers = [ maintainers.brainrape ];
}; };
} }
``` ```

View File

@ -116,7 +116,7 @@ The first step will be to build the Maven project as a fixed-output derivation i
> Traditionally the Maven repository is at `~/.m2/repository`. We will override this to be the `$out` directory. > Traditionally the Maven repository is at `~/.m2/repository`. We will override this to be the `$out` directory.
```nix ```nix
{ stdenv, lib, maven }: { lib, stdenv, maven }:
stdenv.mkDerivation { stdenv.mkDerivation {
name = "maven-repository"; name = "maven-repository";
buildInputs = [ maven ]; buildInputs = [ maven ];
@ -168,7 +168,7 @@ If your package uses _SNAPSHOT_ dependencies or _version ranges_; there is a str
Regardless of which strategy is chosen above, the step to build the derivation is the same. Regardless of which strategy is chosen above, the step to build the derivation is the same.
```nix ```nix
{ stdenv, lib, maven, callPackage }: { stdenv, maven, callPackage }:
# pick a repository derivation, here we will use buildMaven # pick a repository derivation, here we will use buildMaven
let repository = callPackage ./build-maven-repository.nix { }; let repository = callPackage ./build-maven-repository.nix { };
in stdenv.mkDerivation rec { in stdenv.mkDerivation rec {
@ -222,7 +222,7 @@ We will read the Maven repository and flatten it to a single list. This list wil
We make sure to provide this classpath to the `makeWrapper`. We make sure to provide this classpath to the `makeWrapper`.
```nix ```nix
{ stdenv, lib, maven, callPackage, makeWrapper, jre }: { stdenv, maven, callPackage, makeWrapper, jre }:
let let
repository = callPackage ./build-maven-repository.nix { }; repository = callPackage ./build-maven-repository.nix { };
in stdenv.mkDerivation rec { in stdenv.mkDerivation rec {
@ -298,7 +298,7 @@ Main-Class: Main
We will modify the derivation above to add a symlink to our repository so that it's accessible to our JAR during the `installPhase`. We will modify the derivation above to add a symlink to our repository so that it's accessible to our JAR during the `installPhase`.
```nix ```nix
{ stdenv, lib, maven, callPackage, makeWrapper, jre }: { stdenv, maven, callPackage, makeWrapper, jre }:
# pick a repository derivation, here we will use buildMaven # pick a repository derivation, here we will use buildMaven
let repository = callPackage ./build-maven-repository.nix { }; let repository = callPackage ./build-maven-repository.nix { };
in stdenv.mkDerivation rec { in stdenv.mkDerivation rec {

View File

@ -32,11 +32,11 @@ buildDunePackage rec {
propagatedBuildInputs = [ bigstringaf result ]; propagatedBuildInputs = [ bigstringaf result ];
doCheck = true; doCheck = true;
meta = { meta = with lib; {
homepage = "https://github.com/inhabitedtype/angstrom"; homepage = "https://github.com/inhabitedtype/angstrom";
description = "OCaml parser combinators built for speed and memory efficiency"; description = "OCaml parser combinators built for speed and memory efficiency";
license = lib.licenses.bsd3; license = licenses.bsd3;
maintainers = with lib.maintainers; [ sternenseemann ]; maintainers = with maintainers; [ sternenseemann ];
}; };
} }
``` ```

View File

@ -110,7 +110,7 @@ ClassC3Componentised = buildPerlPackage rec {
On Darwin, if a script has too many `-Idir` flags in its first line (its “shebang line”), it will not run. This can be worked around by calling the `shortenPerlShebang` function from the `postInstall` phase: On Darwin, if a script has too many `-Idir` flags in its first line (its “shebang line”), it will not run. This can be worked around by calling the `shortenPerlShebang` function from the `postInstall` phase:
```nix ```nix
{ stdenv, lib, buildPerlPackage, fetchurl, shortenPerlShebang }: { lib, stdenv, buildPerlPackage, fetchurl, shortenPerlShebang }:
ImageExifTool = buildPerlPackage { ImageExifTool = buildPerlPackage {
pname = "Image-ExifTool"; pname = "Image-ExifTool";

View File

@ -8,7 +8,7 @@ There are primarily two problems which the Qt infrastructure is designed to addr
```{=docbook} ```{=docbook}
<programlisting> <programlisting>
{ mkDerivation, lib, qtbase }: <co xml:id='qt-default-nix-co-1' /> { mkDerivation, qtbase }: <co xml:id='qt-default-nix-co-1' />
mkDerivation { <co xml:id='qt-default-nix-co-2' /> mkDerivation { <co xml:id='qt-default-nix-co-2' />
pname = "myapp"; pname = "myapp";

View File

@ -32,14 +32,12 @@ However, if you'd like to add a file to your project source to make the
environment available for other contributors, you can create a `default.nix` environment available for other contributors, you can create a `default.nix`
file like so: file like so:
```nix ```nix
let with import <nixpkgs> {};
pkgs = import <nixpkgs> {}; {
stdenv = pkgs.stdenv;
in with pkgs; {
myProject = stdenv.mkDerivation { myProject = stdenv.mkDerivation {
name = "myProject"; name = "myProject";
version = "1"; version = "1";
src = if pkgs.lib.inNixShell then null else nix; src = if lib.inNixShell then null else nix;
buildInputs = with rPackages; [ buildInputs = with rPackages; [
R R

View File

@ -232,7 +232,7 @@ If you want to package a specific version, you can use the standard Gemfile synt
Now you can also also make a `default.nix` that looks like this: Now you can also also make a `default.nix` that looks like this:
```nix ```nix
{ lib, bundlerApp }: { bundlerApp }:
bundlerApp { bundlerApp {
pname = "mdl"; pname = "mdl";

View File

@ -19,6 +19,8 @@ or use Mozilla's [Rust nightlies overlay](#using-the-rust-nightlies-overlay).
Rust applications are packaged by using the `buildRustPackage` helper from `rustPlatform`: Rust applications are packaged by using the `buildRustPackage` helper from `rustPlatform`:
``` ```
{ lib, rustPlatform }:
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "ripgrep"; pname = "ripgrep";
version = "12.1.1"; version = "12.1.1";
@ -226,8 +228,6 @@ source code in a reproducible way. If it is missing or out-of-date one can use
the `cargoPatches` attribute to update or add it. the `cargoPatches` attribute to update or add it.
``` ```
{ lib, rustPlatform, fetchFromGitHub }:
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
(...) (...)
cargoPatches = [ cargoPatches = [
@ -263,7 +263,7 @@ Now, the file produced by the call to `carnix`, called `hello.nix`, looks like:
``` ```
# Generated by carnix 0.6.5: carnix -o hello.nix --src ./. Cargo.lock --standalone # Generated by carnix 0.6.5: carnix -o hello.nix --src ./. Cargo.lock --standalone
{ lib, stdenv, buildRustCrate, fetchgit }: { stdenv, buildRustCrate, fetchgit }:
let kernel = stdenv.buildPlatform.parsed.kernel.name; let kernel = stdenv.buildPlatform.parsed.kernel.name;
# ... (content skipped) # ... (content skipped)
in in
@ -292,7 +292,7 @@ following nix file:
``` ```
# Generated by carnix 0.6.5: carnix -o hello.nix --src ./. Cargo.lock --standalone # Generated by carnix 0.6.5: carnix -o hello.nix --src ./. Cargo.lock --standalone
{ lib, stdenv, buildRustCrate, fetchgit }: { stdenv, buildRustCrate, fetchgit }:
let kernel = stdenv.buildPlatform.parsed.kernel.name; let kernel = stdenv.buildPlatform.parsed.kernel.name;
# ... (content skipped) # ... (content skipped)
in in

View File

@ -5138,6 +5138,12 @@
githubId = 42153076; githubId = 42153076;
name = "Alexey Nikashkin"; name = "Alexey Nikashkin";
}; };
lesuisse = {
email = "thomas@gerbet.me";
github = "LeSuisse";
githubId = 737767;
name = "Thomas Gerbet";
};
lethalman = { lethalman = {
email = "lucabru@src.gnome.org"; email = "lucabru@src.gnome.org";
github = "lethalman"; github = "lethalman";

View File

@ -20,8 +20,14 @@ let
optionalString fixBinary "F"; optionalString fixBinary "F";
in ":${name}:${type}:${offset'}:${magicOrExtension}:${mask'}:${interpreter}:${flags}"; in ":${name}:${type}:${offset'}:${magicOrExtension}:${mask'}:${interpreter}:${flags}";
activationSnippet = name: { interpreter, ... }: activationSnippet = name: { interpreter, ... }: ''
"ln -sf ${interpreter} /run/binfmt/${name}"; rm -f /run/binfmt/${name}
cat > /run/binfmt/${name} << 'EOF'
#!/usr/bin/env sh
exec -- ${interpreter} "$@"
EOF
chmod +x /run/binfmt/${name}
'';
getEmulator = system: (lib.systems.elaborate { inherit system; }).emulator pkgs; getEmulator = system: (lib.systems.elaborate { inherit system; }).emulator pkgs;

View File

@ -1,10 +1,14 @@
{ system ? builtins.currentSystem { system ? builtins.currentSystem
, config ? {} , config ? {}
, pkgs ? import ../.. { inherit system config; } , pkgs ? import ../.. { inherit system config; }
, channelMap ? { , channelMap ? { # Maps "channels" to packages
stable = pkgs.chromium; stable = pkgs.chromium;
beta = pkgs.chromiumBeta; beta = pkgs.chromiumBeta;
dev = pkgs.chromiumDev; dev = pkgs.chromiumDev;
ungoogled = pkgs.ungoogled-chromium;
chrome-stable = pkgs.google-chrome;
chrome-beta = pkgs.google-chrome-beta;
chrome-dev = pkgs.google-chrome-dev;
} }
}: }:
@ -14,7 +18,7 @@ with pkgs.lib;
mapAttrs (channel: chromiumPkg: makeTest rec { mapAttrs (channel: chromiumPkg: makeTest rec {
name = "chromium-${channel}"; name = "chromium-${channel}";
meta = { meta = {
maintainers = with maintainers; [ aszlig ]; maintainers = with maintainers; [ aszlig primeos ];
# https://github.com/NixOS/hydra/issues/591#issuecomment-435125621 # https://github.com/NixOS/hydra/issues/591#issuecomment-435125621
inherit (chromiumPkg.meta) timeout; inherit (chromiumPkg.meta) timeout;
}; };
@ -58,6 +62,19 @@ mapAttrs (channel: chromiumPkg: makeTest rec {
return "su - ${user} -c " + shlex.quote(cmd) return "su - ${user} -c " + shlex.quote(cmd)
def get_browser_binary():
"""Returns the name of the browser binary."""
pname = "${getName chromiumPkg.name}"
if pname.find("chromium") != -1:
return "chromium" # Same name for all channels and ungoogled-chromium
if pname == "google-chrome":
return "google-chrome-stable"
if pname == "google-chrome-dev":
return "google-chrome-unstable"
# For google-chrome-beta and as fallback:
return pname
def create_new_win(): def create_new_win():
with machine.nested("Creating a new Chromium window"): with machine.nested("Creating a new Chromium window"):
machine.execute( machine.execute(
@ -153,7 +170,14 @@ mapAttrs (channel: chromiumPkg: makeTest rec {
machine.wait_for_x() machine.wait_for_x()
url = "file://${startupHTML}" url = "file://${startupHTML}"
machine.succeed(ru(f'ulimit -c unlimited; chromium "{url}" & disown')) machine.succeed(ru(f'ulimit -c unlimited; "{get_browser_binary()}" "{url}" & disown'))
if get_browser_binary().startswith("google-chrome"):
# Need to click away the first window:
machine.wait_for_text("Make Google Chrome the default browser")
machine.screenshot("google_chrome_default_browser_prompt")
machine.send_key("ret")
machine.wait_for_text("startup done") machine.wait_for_text("startup done")
machine.wait_until_succeeds( machine.wait_until_succeeds(
ru( ru(

View File

@ -0,0 +1,12 @@
import ./make-test-python.nix ({ pkgs, ... }: {
name = "cifs-utils";
machine = { pkgs, ... }: { environment.systemPackages = [ pkgs.cifs-utils ]; };
testScript = ''
machine.succeed("smbinfo -h")
machine.succeed("smb2-quota -h")
assert "${pkgs.cifs-utils.version}" in machine.succeed("cifs.upcall -v")
assert "${pkgs.cifs-utils.version}" in machine.succeed("mount.cifs -V")
'';
})

View File

@ -1,4 +1,6 @@
import ./make-test-python.nix ( { pkgs, ... }: { import ./make-test-python.nix ( { pkgs, ... }: let
testUser = "alice";
in {
name = "opentabletdriver"; name = "opentabletdriver";
meta = { meta = {
maintainers = with pkgs.lib.maintainers; [ thiagokokada ]; maintainers = with pkgs.lib.maintainers; [ thiagokokada ];
@ -10,7 +12,7 @@ import ./make-test-python.nix ( { pkgs, ... }: {
./common/user-account.nix ./common/user-account.nix
./common/x11.nix ./common/x11.nix
]; ];
test-support.displayManager.auto.user = "alice"; test-support.displayManager.auto.user = testUser;
hardware.opentabletdriver.enable = true; hardware.opentabletdriver.enable = true;
}; };
@ -18,10 +20,11 @@ import ./make-test-python.nix ( { pkgs, ... }: {
'' ''
machine.start() machine.start()
machine.wait_for_x() machine.wait_for_x()
machine.wait_for_unit("opentabletdriver.service", "alice") machine.wait_for_unit("opentabletdriver.service", "${testUser}")
machine.succeed("cat /etc/udev/rules.d/30-opentabletdriver.rules") machine.succeed("cat /etc/udev/rules.d/99-opentabletdriver.rules")
# Will fail if service is not running # Will fail if service is not running
machine.succeed("otd detect") # Needs to run as the same user that started the service
machine.succeed("su - ${testUser} -c 'otd detect'")
''; '';
}) })

View File

@ -61,6 +61,20 @@ import ./make-test-python.nix (
podman.succeed("podman stop sleeping") podman.succeed("podman stop sleeping")
podman.succeed("podman rm sleeping") podman.succeed("podman rm sleeping")
# create systemd session for rootless
podman.succeed("loginctl enable-linger alice")
with subtest("Run container rootless with runc"):
podman.succeed(su_cmd("tar cv --files-from /dev/null | podman import - scratchimg"))
podman.succeed(
su_cmd(
"podman run --runtime=runc -d --name=sleeping -v /nix/store:/nix/store -v /run/current-system/sw/bin:/bin scratchimg /bin/sleep 10"
)
)
podman.succeed(su_cmd("podman ps | grep sleeping"))
podman.succeed(su_cmd("podman stop sleeping"))
podman.succeed(su_cmd("podman rm sleeping"))
with subtest("Run container rootless with crun"): with subtest("Run container rootless with crun"):
podman.succeed(su_cmd("tar cv --files-from /dev/null | podman import - scratchimg")) podman.succeed(su_cmd("tar cv --files-from /dev/null | podman import - scratchimg"))
podman.succeed( podman.succeed(
@ -71,7 +85,6 @@ import ./make-test-python.nix (
podman.succeed(su_cmd("podman ps | grep sleeping")) podman.succeed(su_cmd("podman ps | grep sleeping"))
podman.succeed(su_cmd("podman stop sleeping")) podman.succeed(su_cmd("podman stop sleeping"))
podman.succeed(su_cmd("podman rm sleeping")) podman.succeed(su_cmd("podman rm sleeping"))
# As of 2020-11-20, the runc backend doesn't work with cgroupsv2 yet, so we don't run that test.
with subtest("Run container rootless with the default backend"): with subtest("Run container rootless with the default backend"):
podman.succeed(su_cmd("tar cv --files-from /dev/null | podman import - scratchimg")) podman.succeed(su_cmd("tar cv --files-from /dev/null | podman import - scratchimg"))

View File

@ -12,13 +12,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "mympd"; pname = "mympd";
version = "6.8.3"; version = "6.10.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "jcorporation"; owner = "jcorporation";
repo = "myMPD"; repo = "myMPD";
rev = "v${version}"; rev = "v${version}";
sha256 = "1a3jrqslxk2a9h5gj6kch108lg9z0i5zwr0j9yd5viyfhr3ka4cq"; sha256 = "sha256-QGJti1tKKJlumLgABPmROplF0UVGMWMnyRXLb2cEieQ=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [

View File

@ -1,26 +1,32 @@
{ lib, stdenv, fetchurl, ghostscript, libpng } : { lib, stdenv, fetchurl, ghostscript, libpng, makeWrapper
, coreutils, bc, gnugrep, gawk, gnused } :
let stdenv.mkDerivation rec {
version = "3.2.7b";
in stdenv.mkDerivation {
pname = "fig2dev"; pname = "fig2dev";
inherit version; version = "3.2.8";
src = fetchurl { src = fetchurl {
url = "mirror://sourceforge/mcj/fig2dev-${version}.tar.xz"; url = "mirror://sourceforge/mcj/fig2dev-${version}.tar.xz";
sha256 = "1ck8gnqgg13xkxq4hrdy706i4xdgrlckx6bi6wxm1g514121pp27"; sha256 = "0zg29yqknfafyzmmln4k7kydfb2dapk3r8ffvlqhj3cm8fp5h4lk";
}; };
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ libpng ]; buildInputs = [ libpng ];
GSEXE="${ghostscript}/bin/gs"; GSEXE="${ghostscript}/bin/gs";
postInstall = ''
wrapProgram $out/bin/fig2ps2tex \
--set PATH ${lib.makeBinPath [ coreutils bc gnugrep gawk ]}
wrapProgram $out/bin/pic2tpic \
--set PATH ${lib.makeBinPath [ gnused ]}
'';
meta = with lib; { meta = with lib; {
description = "Tool to convert Xfig files to other formats"; description = "Tool to convert Xfig files to other formats";
homepage = "http://mcj.sourceforge.net/"; homepage = "http://mcj.sourceforge.net/";
license = licenses.xfig; license = licenses.xfig;
platforms = platforms.linux; platforms = platforms.linux;
maintainers = with maintainers; [ lesuisse ];
}; };
} }

View File

@ -2,16 +2,16 @@
buildGoModule rec { buildGoModule rec {
pname = "pdfcpu"; pname = "pdfcpu";
version = "0.3.7"; version = "0.3.8";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "pdfcpu"; owner = "pdfcpu";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "13b1ncpx189ca0h70j5cdp0jwlj95kasysryz1l6g13cwn9n6mii"; sha256 = "sha256-Rx/LUp5s2DhEKuLUklYXjtTXjqBju+5YzK1hNfBCnIE=";
}; };
vendorSha256 = "11w9i1829hk1qb9w24dyxv1bi49358a274g60x11fp5x5cw7bqa7"; vendorSha256 = "sha256-/SsDDFveovJfuEdnOkxHAWccS8PJW5k9IHSxSJAgHMQ=";
# No tests # No tests
doCheck = false; doCheck = false;

View File

@ -36,6 +36,21 @@ update `upstream-info.json`. After updates it is important to test at least
`nixosTests.chromium` (or basic manual testing) and `google-chrome` (which `nixosTests.chromium` (or basic manual testing) and `google-chrome` (which
reuses `upstream-info.json`). reuses `upstream-info.json`).
To run all automated NixOS VM tests for Chromium, ungoogled-chromium,
and Google Chrome (not recommended, currently 6x tests!):
```
nix-build nixos/tests/chromium.nix
```
A single test can be selected, e.g. to test `ungoogled-chromium` (see
`channelMap` in `nixos/tests/chromium.nix` for all available options):
```
nix-build nixos/tests/chromium.nix -A ungoogled
```
(Note: Testing Google Chrome requires `export NIXPKGS_ALLOW_UNFREE=1`.)
For custom builds it's possible to "override" `channelMap`.
## Backports ## Backports
All updates are considered security critical and should be ported to the stable All updates are considered security critical and should be ported to the stable

View File

@ -14,16 +14,16 @@ let
in in
buildGoModule rec { buildGoModule rec {
pname = "nerdctl"; pname = "nerdctl";
version = "0.4.0"; version = "0.5.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "AkihiroSuda"; owner = "AkihiroSuda";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "0vjcbvd5yrasw97hd5mrn6cdjvfv2r03z7g1wczlszlcs8gr6nxw"; sha256 = "sha256-lSvYiTh67gK9kJls7VsayV8T3H6RzFEEKe49BOWnUBw=";
}; };
vendorSha256 = "181lp9l4i0qpiqm8wbxa4ldi1j5bm3ygmanz1xh3mkjanl0pwqjr"; vendorSha256 = "sha256-qywiaNoO3pI7sfyPbwWR8BLd86RvJ2xSWwCJUsm3RkM=";
nativeBuildInputs = [ makeWrapper ]; nativeBuildInputs = [ makeWrapper ];

View File

@ -57,6 +57,10 @@ mkDerivation rec {
qtgraphicaleffects qtgraphicaleffects
] ++ lib.optional stdenv.isDarwin qtmacextras; ] ++ lib.optional stdenv.isDarwin qtmacextras;
cmakeFlags = [
"-DCOMPILE_QML=ON" # see https://github.com/Nheko-Reborn/nheko/issues/389
];
meta = with lib; { meta = with lib; {
description = "Desktop client for the Matrix protocol"; description = "Desktop client for the Matrix protocol";
homepage = "https://github.com/Nheko-Reborn/nheko"; homepage = "https://github.com/Nheko-Reborn/nheko";

View File

@ -25,7 +25,7 @@ let
else ""); else "");
in stdenv.mkDerivation rec { in stdenv.mkDerivation rec {
pname = "signal-desktop"; pname = "signal-desktop";
version = "1.39.5"; # Please backport all updates to the stable channel. version = "1.39.6"; # Please backport all updates to the stable channel.
# All releases have a limited lifetime and "expire" 90 days after the release. # All releases have a limited lifetime and "expire" 90 days after the release.
# When releases "expire" the application becomes unusable until an update is # When releases "expire" the application becomes unusable until an update is
# applied. The expiration date for the current release can be extracted with: # applied. The expiration date for the current release can be extracted with:
@ -35,7 +35,7 @@ in stdenv.mkDerivation rec {
src = fetchurl { src = fetchurl {
url = "https://updates.signal.org/desktop/apt/pool/main/s/signal-desktop/signal-desktop_${version}_amd64.deb"; url = "https://updates.signal.org/desktop/apt/pool/main/s/signal-desktop/signal-desktop_${version}_amd64.deb";
sha256 = "1x29ri4jxd1q2wbv5gf26x986x9sms4rxnhj7d5rhm6pz2ihzb2a"; sha256 = "04fd81vc0dxk0b47crm5zacf4x79pdn483xicygnc1z6v7mnrmgk";
}; };
nativeBuildInputs = [ nativeBuildInputs = [

View File

@ -12,13 +12,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "pappl"; pname = "pappl";
version = "1.0.0"; version = "1.0.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "michaelrsweet"; owner = "michaelrsweet";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "1cg06v8hxska0hnybnmfda1v4h3ifjir24nx2iqx80kb6jq0hayb"; sha256 = "sha256-4evyOrPd8zb5y00L8h2t++ayW1S8WQ5P+6MXe6eju68=";
}; };
outputs = [ "out" "dev" ]; outputs = [ "out" "dev" ];

View File

@ -2,11 +2,11 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "picard-tools"; pname = "picard-tools";
version = "2.23.9"; version = "2.24.0";
src = fetchurl { src = fetchurl {
url = "https://github.com/broadinstitute/picard/releases/download/${version}/picard.jar"; url = "https://github.com/broadinstitute/picard/releases/download/${version}/picard.jar";
sha256 = "1ygdl590sbcsxpk0qwr0bx163nx51h0545n1xxkbc3pk2r6n51lk"; sha256 = "sha256-cOkQObzMb222DxjEFxMhiozfRfWR8CwQEsBiFSsnzXs=";
}; };
nativeBuildInputs = [ makeWrapper ]; nativeBuildInputs = [ makeWrapper ];

View File

@ -30,8 +30,8 @@ stdenv.mkDerivation {
meta = with lib; { meta = with lib; {
description = "Lightweight multitabbed feature-rich X11 terminal emulator"; description = "Lightweight multitabbed feature-rich X11 terminal emulator";
longDescription = " longDescription = "
Multitabbed lightweight terminal emulator based on rxvt. Multitabbed lightweight terminal emulator based on rxvt.
Supports transparency, backgroundimages, freetype fonts, ... Supports transparency, backgroundimages, freetype fonts, ...
"; ";
homepage = "https://sourceforge.net/projects/materm"; homepage = "https://sourceforge.net/projects/materm";
license = licenses.gpl2; license = licenses.gpl2;

View File

@ -9068,4 +9068,4 @@ in
bypassCache = true; bypassCache = true;
reconstructLock = true; reconstructLock = true;
}; };
} }

View File

@ -65,6 +65,7 @@ let
&& libcxx == null && libcxx == null
&& !(stdenv.targetPlatform.useLLVM or false) && !(stdenv.targetPlatform.useLLVM or false)
&& !(stdenv.targetPlatform.useAndroidPrebuilt or false) && !(stdenv.targetPlatform.useAndroidPrebuilt or false)
&& !(stdenv.targetPlatform.isiOS or false)
&& gccForLibs != null; && gccForLibs != null;
# older compilers (for example bootstrap's GCC 5) fail with -march=too-modern-cpu # older compilers (for example bootstrap's GCC 5) fail with -march=too-modern-cpu

View File

@ -14,4 +14,4 @@ in
import ./node-packages.nix { import ./node-packages.nix {
inherit (pkgs) fetchurl fetchgit; inherit (pkgs) fetchurl fetchgit;
inherit nodeEnv; inherit nodeEnv;
} }

View File

@ -15513,4 +15513,4 @@ in
bypassCache = true; bypassCache = true;
reconstructLock = true; reconstructLock = true;
}; };
} }

View File

@ -2,13 +2,13 @@
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "gleam"; pname = "gleam";
version = "0.12.1"; version = "0.13.2";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "gleam-lang"; owner = "gleam-lang";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "0n23pn7jk4i2waczw5cczsb7v4lal4x6xqmp01y280hb2vk176fg"; sha256 = "sha256-ka1GxukX3HR40fMeiiXHguyPKrpGngG2tXDColR7eQA=";
}; };
nativeBuildInputs = [ pkg-config ]; nativeBuildInputs = [ pkg-config ];
@ -16,7 +16,7 @@ rustPlatform.buildRustPackage rec {
buildInputs = [ openssl ] ++ buildInputs = [ openssl ] ++
stdenv.lib.optionals stdenv.isDarwin [ Security ]; stdenv.lib.optionals stdenv.isDarwin [ Security ];
cargoSha256 = "0rnf9agpzlvk53x8zrg32w6r0gxcbank3fs32ydv53frvqv1spj3"; cargoSha256 = "sha256-/l54ezS68loljKNh7AdYMIuCiyIbsMI3jqD9ktjZLfc=";
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "A statically typed language for the Erlang VM"; description = "A statically typed language for the Erlang VM";

View File

@ -36,11 +36,11 @@ in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "go"; pname = "go";
version = "1.14.13"; version = "1.14.14";
src = fetchurl { src = fetchurl {
url = "https://dl.google.com/go/go${version}.src.tar.gz"; url = "https://dl.google.com/go/go${version}.src.tar.gz";
sha256 = "0xxins5crcgghgvnzplmp0qyv2gbmh36v1fpl15d03jwdd6287ds"; sha256 = "0vx7r0bb1a500znnnh7v3wgw22ly3p2x06vzyi9hiblgylrby132";
}; };
# perl is used for testing go vet # perl is used for testing go vet

View File

@ -36,11 +36,11 @@ in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "go"; pname = "go";
version = "1.15.6"; version = "1.15.7";
src = fetchurl { src = fetchurl {
url = "https://dl.google.com/go/go${version}.src.tar.gz"; url = "https://dl.google.com/go/go${version}.src.tar.gz";
sha256 = "05sqcx4fm1nxfm46j6xriq0fnnah4bm8bqw027xrzcg2qmrvl2w9"; sha256 = "1g1a39y1cnvw3y0bjwjms55cz0s9icm8myrgxi295jwfznmb6cc6";
}; };
# perl is used for testing go vet # perl is used for testing go vet

View File

@ -3,13 +3,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "libmodule"; pname = "libmodule";
version = "5.0.0"; version = "5.0.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "FedeDP"; owner = "FedeDP";
repo = "libmodule"; repo = "libmodule";
rev = version; rev = version;
sha256 = "1cf81sl33xmfn5g150iqcdrjn0lpjlgp53mganwi6x7jda2qk7r6"; sha256 = "sha256-wkRiDWO9wUyxkAeqvm99u22Jq4xnQJx6zS7Sb+R8iMg=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [

View File

@ -0,0 +1,39 @@
{ stdenv
, lib
, fetchurl
, meson
, pkg-config
, libxkbcommon
, libGL
, ninja
, libX11 }:
stdenv.mkDerivation rec {
pname = "libwpe";
version = "1.7.1";
src = fetchurl {
url = "https://wpewebkit.org/releases/${pname}-${version}.tar.xz";
sha256 = "0h6kh8wy2b370y705pl2vp6vp18dkdsgdxh0243ji2v51kxbg157";
};
nativeBuildInputs = [
pkg-config
meson
ninja
];
buildInputs = [
libxkbcommon
libGL
libX11
];
meta = with lib; {
description = "General-purpose library for WPE WebKit";
license = licenses.bsd2;
homepage = "https://wpewebkit.org";
maintainers = with maintainers; [ matthewbauer ];
platforms = platforms.linux;
};
}

View File

@ -0,0 +1,52 @@
{ stdenv
, lib
, fetchurl
, meson
, pkg-config
, ninja
, wayland
, epoxy
, glib
, libwpe
, libxkbcommon
, libGL
, libX11 }:
stdenv.mkDerivation rec {
pname = "wpebackend-fdo";
version = "1.7.1";
src = fetchurl {
url = "https://wpewebkit.org/releases/${pname}-${version}.tar.xz";
sha256 = "1xf6akagvpyh0nyxkfijrx5avp6ravnivy28dhk64dsfx9rhm64v";
};
depsBuildBuild = [
pkg-config
];
nativeBuildInputs = [
pkg-config
meson
ninja
wayland
];
buildInputs = [
wayland
epoxy
glib
libwpe
libxkbcommon
libGL
libX11
];
meta = with lib; {
description = "Freedesktop.org backend for WPE WebKit";
license = licenses.bsd2;
homepage = "https://wpewebkit.org";
maintainers = with maintainers; [ matthewbauer ];
platforms = platforms.linux;
};
}

View File

@ -51,6 +51,8 @@
, xdg-dbus-proxy , xdg-dbus-proxy
, substituteAll , substituteAll
, glib , glib
, libwpe
, libwpe-fdo
}: }:
assert enableGeoLocation -> geoclue2 != null; assert enableGeoLocation -> geoclue2 != null;
@ -120,6 +122,8 @@ stdenv.mkDerivation rec {
libsecret libsecret
libtasn1 libtasn1
libwebp libwebp
libwpe
libwpe-fdo
libxkbcommon libxkbcommon
libxml2 libxml2
libxslt libxslt
@ -154,7 +158,6 @@ stdenv.mkDerivation rec {
"-DENABLE_INTROSPECTION=ON" "-DENABLE_INTROSPECTION=ON"
"-DPORT=GTK" "-DPORT=GTK"
"-DUSE_LIBHYPHEN=OFF" "-DUSE_LIBHYPHEN=OFF"
"-DUSE_WPE_RENDERER=OFF"
] ++ optionals stdenv.isDarwin [ ] ++ optionals stdenv.isDarwin [
"-DENABLE_GRAPHICS_CONTEXT_3D=OFF" "-DENABLE_GRAPHICS_CONTEXT_3D=OFF"
"-DENABLE_GTKDOC=OFF" "-DENABLE_GTKDOC=OFF"

View File

@ -14,4 +14,4 @@ in
import ./node-packages.nix { import ./node-packages.nix {
inherit (pkgs) fetchurl fetchgit; inherit (pkgs) fetchurl fetchgit;
inherit nodeEnv; inherit nodeEnv;
} }

View File

@ -2102,4 +2102,4 @@ in
bypassCache = true; bypassCache = true;
reconstructLock = true; reconstructLock = true;
}; };
} }

View File

@ -110969,4 +110969,4 @@ in
bypassCache = true; bypassCache = true;
reconstructLock = true; reconstructLock = true;
}; };
} }

View File

@ -2,11 +2,11 @@
buildDunePackage rec { buildDunePackage rec {
minimumOCamlVersion = "4.03"; minimumOCamlVersion = "4.03";
version = "0.0.3"; version = "0.0.4";
pname = "optint"; pname = "optint";
src = fetchurl { src = fetchurl {
url = "https://github.com/mirage/optint/releases/download/v${version}/optint-v${version}.tbz"; url = "https://github.com/mirage/optint/releases/download/v${version}/optint-v${version}.tbz";
sha256 = "0c7r3s6lal9xkixngkj25nqncj4s33ka40bjdi7fz7mly08djycj"; sha256 = "1a7gabxqmfvii8qnxq1clx43md2h9glskxhac8y8r0rhzblx3s1a";
}; };
meta = { meta = {

View File

@ -1,14 +1,14 @@
{ mkDerivation, fetchurl, pkgs, lib, php }: { mkDerivation, fetchurl, pkgs, lib, php }:
let let
pname = "phpstan"; pname = "phpstan";
version = "0.12.59"; version = "0.12.68";
in in
mkDerivation { mkDerivation {
inherit pname version; inherit pname version;
src = pkgs.fetchurl { src = pkgs.fetchurl {
url = "https://github.com/phpstan/phpstan/releases/download/${version}/phpstan.phar"; url = "https://github.com/phpstan/phpstan/releases/download/${version}/phpstan.phar";
sha256 = "0lp25d9b7w8lk4ffrd17mjw93i234qnfpwz42k8lww1lrk5abnfa"; sha256 = "sha256-qplQi12ecZjtaM8XawiO+qSwEdTXByrxWZLf3N7gfNc=";
}; };
phases = [ "installPhase" ]; phases = [ "installPhase" ];

View File

@ -1,14 +1,14 @@
{ mkDerivation, fetchurl, pkgs, lib, php }: { mkDerivation, fetchurl, pkgs, lib, php }:
let let
pname = "psalm"; pname = "psalm";
version = "4.3.1"; version = "4.4.1";
in in
mkDerivation { mkDerivation {
inherit pname version; inherit pname version;
src = fetchurl { src = fetchurl {
url = "https://github.com/vimeo/psalm/releases/download/${version}/psalm.phar"; url = "https://github.com/vimeo/psalm/releases/download/${version}/psalm.phar";
sha256 = "1hv9r5m1mdywm7qi9rs9054jp77cpip3jyw048iq3l7s0vpslkc5"; sha256 = "sha256-4hqgAPflzNmeQQaxQATpWYBB5Pz7jKu8Vlw3BiMyhtw=";
}; };
phases = [ "installPhase" ]; phases = [ "installPhase" ];

View File

@ -23,8 +23,8 @@ buildPythonPackage rec {
pythonImportsCheck = [ "azure.synapse.artifacts" ]; pythonImportsCheck = [ "azure.synapse.artifacts" ];
meta = with lib; { meta = with lib; {
description = "CHANGE"; description = "Microsoft Azure Synapse Artifacts Client Library for Python";
homepage = "https://github.com/CHANGE/azure-synapse-artifacts/"; homepage = "https://github.com/Azure/azure-sdk-for-python";
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ jonringer ]; maintainers = with maintainers; [ jonringer ];
}; };

View File

@ -1,26 +1,27 @@
{ lib, stdenv, buildPythonPackage, fetchPypi { lib, stdenv, buildPythonPackage, fetchFromGitHub
, click, click-log, pure-pcapy3 , click, click-log, pure-pcapy3
, pyserial, pyserial-asyncio, voluptuous, zigpy , pyserial-asyncio, voluptuous, zigpy
, asynctest, pytest, pytest-asyncio }: , asynctest, pytestCheckHook, pytest-asyncio }:
let buildPythonPackage rec {
pname = "bellows"; pname = "bellows";
version = "0.21.0"; version = "0.21.0";
in buildPythonPackage rec { src = fetchFromGitHub {
inherit pname version; owner = "zigpy";
repo = "bellows";
src = fetchPypi { rev = version;
inherit pname version; sha256 = "1gja7cb1cyzbi19k8awa2gyc3bjam0adapalpk5slxny0vxlc73a";
sha256 = "fd2ac40c1f3550580dc561ae58d7d15cfa12e6a7cc5d35ee80e7a1cb6a4cda4f";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
click click-log pure-pcapy3 pyserial pyserial-asyncio voluptuous zigpy click click-log pure-pcapy3 pyserial-asyncio voluptuous zigpy
]; ];
checkInputs = [ checkInputs = [
asynctest pytest pytest-asyncio asynctest
pytestCheckHook
pytest-asyncio
]; ];
prePatch = '' prePatch = ''

View File

@ -3,7 +3,7 @@
, sphinx , sphinx
, hypothesis , hypothesis
, py , py
, pytest , pytestCheckHook
, pytest-benchmark , pytest-benchmark
, sortedcollections , sortedcollections
, sortedcontainers , sortedcontainers
@ -23,23 +23,14 @@ buildPythonPackage rec {
nativeBuildInputs = [ setuptools_scm ]; nativeBuildInputs = [ setuptools_scm ];
propagatedBuildInputs = [ sphinx ]; propagatedBuildInputs = [ sphinx ];
# this can be removed >0.19.0
postPatch = ''
substituteInPlace setup.py \
--replace "setuptools_scm < 4" "setuptools_scm"
'';
checkInputs = [ checkInputs = [
hypothesis hypothesis
py py
pytest pytestCheckHook
pytest-benchmark pytest-benchmark
sortedcollections sortedcollections
sortedcontainers sortedcontainers
]; ];
checkPhase = ''
pytest tests
'';
meta = with lib; { meta = with lib; {
homepage = "https://github.com/jab/bidict"; homepage = "https://github.com/jab/bidict";

View File

@ -19,11 +19,6 @@ buildPythonPackage rec {
sha256 = "0fsp491ifsw0i1r98l8xr41m8d00nw9n5bin8k3laqzq1p65d6dp"; sha256 = "0fsp491ifsw0i1r98l8xr41m8d00nw9n5bin8k3laqzq1p65d6dp";
}; };
postPatch = ''
substituteInPlace setup.py \
--replace "audio-metadata>=0.8,<0.9" "audio-metadata"
'';
propagatedBuildInputs = [ propagatedBuildInputs = [
appdirs appdirs
audio-metadata audio-metadata

View File

@ -20,9 +20,7 @@ buildPythonPackage {
postPatch = '' postPatch = ''
substituteInPlace python/setup.py \ substituteInPlace python/setup.py \
--replace "graphviz<0.9.0," "graphviz" \ --replace "graphviz<0.9.0," "graphviz"
--replace "numpy<=1.15.2," "numpy" \
--replace "requests<2.19.0," "requests"
''; '';
preConfigure = '' preConfigure = ''

View File

@ -44,8 +44,7 @@ buildPythonPackage rec {
sed -i /pyqtwebengine/d setup.py sed -i /pyqtwebengine/d setup.py
substituteInPlace setup.py \ substituteInPlace setup.py \
--replace "pyqt5<5.13" "pyqt5" \ --replace "pyqt5<5.13" "pyqt5" \
--replace "parso==0.7.0" "parso" \ --replace "parso==0.7.0" "parso"
--replace "jedi==0.17.1" "jedi"
''; '';
postInstall = '' postInstall = ''

View File

@ -2,16 +2,16 @@
buildGoModule rec { buildGoModule rec {
pname = "operator-sdk"; pname = "operator-sdk";
version = "1.2.0"; version = "1.3.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "operator-framework"; owner = "operator-framework";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "03iy4a5jlsmmzn8cpyp35sc2kgz6shg18ah0qdzkadqqalqlldy8"; sha256 = "sha256-xYG605Z8WGFH5byJA+sHPBjBmWi8b+TTtWRnQnmYN/4=";
}; };
vendorSha256 = "0dls086lw3sbal4rf0l3xb0sp6g393n9ylkpzppp75myj7v900vv"; vendorSha256 = "sha256-0ZowddIiVHVg1OKhaCFo+vQKcUe6wZ6L0J8RdMvZyGk=";
doCheck = false; doCheck = false;

View File

@ -0,0 +1,70 @@
{ stdenv
, lib
, fetchpatch
, fetchFromGitHub
, cmake
, pkg-config
, wayland
, wayland-protocols
, libwpe
, libwpe-fdo
, glib
, glib-networking
, webkitgtk
, makeWrapper
, wrapGAppsHook
, gnome3
, gdk-pixbuf
}:
stdenv.mkDerivation rec {
pname = "cog";
version = "0.6.0";
src = fetchFromGitHub {
owner = "igalia";
repo = "cog";
rev = "v${version}";
sha256 = "0a0zpdki1whm5gb6ycbazvwmm1fz094mkfwjfy4a7zz0pk54h1jw";
};
buildInputs = [
wayland-protocols
wayland
libwpe
libwpe-fdo
webkitgtk
glib-networking
gdk-pixbuf
gnome3.adwaita-icon-theme
];
nativeBuildInputs = [
cmake
pkg-config
wayland
makeWrapper
wrapGAppsHook
];
depsBuildsBuild = [
pkg-config
];
cmakeFlags = [
"-DCOG_USE_WEBKITGTK=ON"
];
# not ideal, see https://github.com/WebPlatformForEmbedded/libwpe/issues/59
preFixup = ''
wrapProgram $out/bin/cog \
--prefix LD_LIBRARY_PATH : ${libwpe-fdo}/lib
'';
meta = with lib; {
description = "A small single window launcher for the WebKit WPE port";
license = licenses.mit;
maintainers = [ maintainers.matthewbauer ];
platforms = platforms.linux;
};
}

View File

@ -14,4 +14,4 @@ in
import ./node-packages.nix { import ./node-packages.nix {
inherit (pkgs) fetchurl fetchgit; inherit (pkgs) fetchurl fetchgit;
inherit nodeEnv; inherit nodeEnv;
} }

View File

@ -5727,4 +5727,4 @@ in
bypassCache = true; bypassCache = true;
reconstructLock = true; reconstructLock = true;
}; };
} }

View File

@ -14,4 +14,4 @@ in
import ./node-packages.nix { import ./node-packages.nix {
inherit (pkgs) fetchurl fetchgit; inherit (pkgs) fetchurl fetchgit;
inherit nodeEnv; inherit nodeEnv;
} }

View File

@ -1,14 +1,14 @@
{ wxGTK, newScope }: { wxGTK, stdenv, newScope }:
let let
callPackage = newScope self; callPackage = newScope self;
self = { self = {
zeroad-unwrapped = callPackage ./game.nix { inherit wxGTK; }; zeroad-unwrapped = callPackage ./game.nix { inherit wxGTK stdenv; };
zeroad-data = callPackage ./data.nix { }; zeroad-data = callPackage ./data.nix { inherit stdenv; };
zeroad = callPackage ./wrapper.nix { }; zeroad = callPackage ./wrapper.nix { };
}; };
in self in
self

View File

@ -50,7 +50,7 @@ stdenv.mkDerivation rec {
# Workaround invalid pkg-config name for mozjs # Workaround invalid pkg-config name for mozjs
mkdir pkg-config mkdir pkg-config
ln -s ${spidermonkey_38}/lib/pkgconfig/* pkg-config/mozjs-38.pc ln -s ${spidermonkey_38}/lib/pkgconfig/* pkg-config/mozjs-38.pc
PKG_CONFIG_PATH="$PWD/pkgconfig:$PKG_CONFIG_PATH" PKG_CONFIG_PATH="$PWD/pkg-config:$PKG_CONFIG_PATH"
# Update Makefiles # Update Makefiles
pushd build/workspaces pushd build/workspaces

View File

@ -2,13 +2,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "crispy-doom"; pname = "crispy-doom";
version = "5.9.2"; version = "5.10.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "fabiangreffrath"; owner = "fabiangreffrath";
repo = pname; repo = pname;
rev = "${pname}-${version}"; rev = "${pname}-${version}";
sha256 = "0fkw9z66sjcz7k528wyla6mgi4impqimn93yhqmc194ycrjirraa"; sha256 = "sha256-hRdd5ZrcVBU7tn1juvrLdbenULzu6OsXefG0oLjjFIg=";
}; };
postPatch = '' postPatch = ''

View File

@ -1634,4 +1634,4 @@ in
bypassCache = true; bypassCache = true;
reconstructLock = true; reconstructLock = true;
}; };
} }

View File

@ -18,4 +18,4 @@ in
import ./node-packages-generated.nix { import ./node-packages-generated.nix {
inherit (pkgs) fetchurl fetchgit; inherit (pkgs) fetchurl fetchgit;
inherit nodeEnv globalBuildInputs; inherit nodeEnv globalBuildInputs;
} }

View File

@ -690,4 +690,4 @@ in
bypassCache = true; bypassCache = true;
reconstructLock = true; reconstructLock = true;
}; };
} }

View File

@ -1,7 +1,13 @@
{ lib, stdenv, fetchFromGitHub, makeWrapper, autoreconfHook, pkg-config, wrapGAppsHook { stdenv
, gtk2 ? null, gtk3 ? null, mednafen }: , lib
, fetchFromGitHub
with lib; , autoreconfHook
, pkg-config
, mednafen
, gtk2 ? null
, gtk3 ? null
, wrapGAppsHook
}:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "mednaffe"; pname = "mednaffe";
@ -14,13 +20,20 @@ stdenv.mkDerivation rec {
sha256 = "15qk3a3l1phr8bap2ayh3c0vyvw2jwhny1iz1ajq2adyjpm9fhr7"; sha256 = "15qk3a3l1phr8bap2ayh3c0vyvw2jwhny1iz1ajq2adyjpm9fhr7";
}; };
nativeBuildInputs = [ autoreconfHook makeWrapper pkg-config wrapGAppsHook ]; nativeBuildInputs = [ autoreconfHook pkg-config wrapGAppsHook ];
buildInputs = [ gtk2 gtk3 mednafen ]; buildInputs = [ gtk2 gtk3 mednafen ];
configureFlags = [ (enableFeature (gtk3 != null) "gtk3") ]; configureFlags = [ (lib.enableFeature (gtk3 != null) "gtk3") ];
postInstall = "wrapProgram $out/bin/mednaffe --set PATH ${mednafen}/bin";
meta = { dontWrapGApps = true;
postInstall = ''
wrapProgram $out/bin/mednaffe \
--prefix PATH ':' "${mednafen}/bin" \
"''${gappsWrapperArgs[@]}"
'';
meta = with lib; {
description = "GTK-based frontend for mednafen emulator"; description = "GTK-based frontend for mednafen emulator";
homepage = "https://github.com/AmatCoder/mednaffe"; homepage = "https://github.com/AmatCoder/mednaffe";
license = licenses.gpl3Plus; license = licenses.gpl3Plus;

View File

@ -1,17 +1,25 @@
{stdenv, lib, fetchFromGitHub, autoreconfHook, darwin}: {stdenv, lib, fetchFromGitHub, autoreconfHook, ApplicationServices}:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "duti"; pname = "duti";
version = "1.5.4pre"; version = "1.5.5pre";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "moretension"; owner = "moretension";
repo = pname; repo = pname;
rev = "7dbcae86f99fedef5a6c4311f032a0f1ca0539cc"; rev = "fe3d3dc411bcea6af7a8cbe53c0e08ed5ecacdb2";
sha256 = "1z9sa0yk87vs57d5338y6lvm1v1vvynxb7dy1x5aqzkcr0imhljl"; sha256 = "1pg4i6ghpib2gy1sqpml7dbnhr1vbr43fs2pqkd09i4w3nmgpic9";
}; };
nativeBuildInputs = [autoreconfHook]; nativeBuildInputs = [autoreconfHook];
buildInputs = [darwin.apple_sdk.frameworks.ApplicationServices]; buildInputs = [ApplicationServices];
configureFlags = ["--with-macosx-sdk=/homeless-shelter"]; configureFlags = [
"--with-macosx-sdk=/homeless-shelter"
# needed to prevent duti from trying to guess our sdk
# NOTE: this is different than stdenv.hostPlatform.config!
"--host=x86_64-apple-darwin18"
];
meta = with lib; { meta = with lib; {
description = "A command-line tool to select default applications for document types and URL schemes on Mac OS X"; description = "A command-line tool to select default applications for document types and URL schemes on Mac OS X";
longDescription = '' longDescription = ''

View File

@ -1,5 +1,5 @@
{ stdenv, lib, fetchurl, autoreconfHook, docutils, pkg-config { stdenv, lib, fetchurl, autoreconfHook, docutils, pkg-config
, kerberos, keyutils, pam, talloc }: , kerberos, keyutils, pam, talloc, python3 }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "cifs-utils"; pname = "cifs-utils";
@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ autoreconfHook docutils pkg-config ]; nativeBuildInputs = [ autoreconfHook docutils pkg-config ];
buildInputs = [ kerberos keyutils pam talloc ]; buildInputs = [ kerberos keyutils pam talloc python3 ];
configureFlags = [ "ROOTSBINDIR=$(out)/sbin" ] ++ lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [ configureFlags = [ "ROOTSBINDIR=$(out)/sbin" ] ++ lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
# AC_FUNC_MALLOC is broken on cross builds. # AC_FUNC_MALLOC is broken on cross builds.

View File

@ -8,7 +8,7 @@ stdenv.mkDerivation {
sha256 = "00f2wy6f0qng7qzga4iicyzl9j8b7mp6mrpfky5jxj93ms2w2rji"; sha256 = "00f2wy6f0qng7qzga4iicyzl9j8b7mp6mrpfky5jxj93ms2w2rji";
}; };
patches = [ ./systemd.patch ./union-wait.patch ]; patches = [ ./systemd.patch ./union-wait.patch ./fix-includes-for-musl.patch ];
NIX_CFLAGS_COMPILE = "-DSYSV"; NIX_CFLAGS_COMPILE = "-DSYSV";

View File

@ -0,0 +1,120 @@
# this patch both fixes some include paths as well as removes glibc
# gates around defines that musl-libc also depends on.
diff -u sysklogd-1.5.1.orig/klogd.c sysklogd-1.5.1/klogd.c
--- sysklogd-1.5.1.orig/klogd.c 2014-10-04 15:47:18.000000000 -0400
+++ sysklogd-1.5.1/klogd.c 2021-01-18 23:09:23.000000000 -0500
@@ -260,11 +260,8 @@
#include <unistd.h>
#include <signal.h>
#include <errno.h>
-#include <sys/fcntl.h>
+#include <fcntl.h>
#include <sys/stat.h>
-#if !defined(__GLIBC__)
-#include <linux/time.h>
-#endif /* __GLIBC__ */
#include <stdarg.h>
#include <paths.h>
#include <stdlib.h>
@@ -277,13 +274,8 @@
#define __LIBRARY__
#include <linux/unistd.h>
-#if !defined(__GLIBC__)
-# define __NR_ksyslog __NR_syslog
-_syscall3(int,ksyslog,int, type, char *, buf, int, len);
-#else
#include <sys/klog.h>
#define ksyslog klogctl
-#endif
#define LOG_BUFFER_SIZE 4096
#define LOG_LINE_LENGTH 1000
diff -u sysklogd-1.5.1.orig/ksym_mod.c sysklogd-1.5.1/ksym_mod.c
--- sysklogd-1.5.1.orig/ksym_mod.c 2014-10-04 15:47:18.000000000 -0400
+++ sysklogd-1.5.1/ksym_mod.c 2021-01-18 23:09:57.000000000 -0500
@@ -113,12 +113,9 @@
#include <unistd.h>
#include <signal.h>
#include <errno.h>
-#include <sys/fcntl.h>
+#include <fcntl.h>
#include <sys/stat.h>
#include "module.h"
-#if !defined(__GLIBC__)
-#include <linux/time.h>
-#endif /* __GLIBC__ */
#include <stdarg.h>
#include <paths.h>
#include <linux/version.h>
diff -u sysklogd-1.5.1.orig/pidfile.c sysklogd-1.5.1/pidfile.c
--- sysklogd-1.5.1.orig/pidfile.c 2014-10-04 15:47:18.000000000 -0400
+++ sysklogd-1.5.1/pidfile.c 2021-01-18 23:23:55.000000000 -0500
@@ -25,6 +25,7 @@
*/
#include <stdio.h>
+#include <fcntl.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/file.h>
diff -u sysklogd-1.5.1.orig/syslog.c sysklogd-1.5.1/syslog.c
--- sysklogd-1.5.1.orig/syslog.c 2014-10-04 15:47:18.000000000 -0400
+++ sysklogd-1.5.1/syslog.c 2021-01-18 23:11:45.000000000 -0500
@@ -55,7 +55,6 @@
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/file.h>
-#include <sys/signal.h>
#include <sys/syslog.h>
#if 0
#include "syslog.h"
@@ -64,6 +63,8 @@
#include <sys/uio.h>
#include <sys/wait.h>
+#include <signal.h>
+#include <fcntl.h>
#include <netdb.h>
#include <string.h>
#include <time.h>
diff -u sysklogd-1.5.1.orig/syslogd.c sysklogd-1.5.1/syslogd.c
--- sysklogd-1.5.1.orig/syslogd.c 2014-10-04 15:47:18.000000000 -0400
+++ sysklogd-1.5.1/syslogd.c 2021-01-18 23:13:25.000000000 -0500
@@ -519,9 +519,9 @@
#include <time.h>
#define SYSLOG_NAMES
+#include <errno.h>
#include <sys/syslog.h>
#include <sys/param.h>
-#include <sys/errno.h>
#include <sys/ioctl.h>
#include <sys/stat.h>
#include <sys/wait.h>
@@ -818,9 +818,7 @@
void init();
void cfline(char *line, register struct filed *f);
int decode(char *name, struct code *codetab);
-#if defined(__GLIBC__)
#define dprintf mydprintf
-#endif /* __GLIBC__ */
static void dprintf(char *, ...);
static void allocate_log(void);
void sighup_handler();
@@ -840,15 +838,9 @@
register char *p;
#ifndef TESTING
ssize_t msglen;
-#endif
-#if !defined(__GLIBC__)
- int len, num_fds;
-#else /* __GLIBC__ */
-#ifndef TESTING
socklen_t len;
#endif
int num_fds;
-#endif /* __GLIBC__ */
/*
* It took me quite some time to figure out how this is
* supposed to work so I guess I should better write it down.

View File

@ -71,9 +71,9 @@ diff -ruN -x '*~' sysklogd-1.5-old/sd-daemon.c sysklogd-1.5/sd-daemon.c
+#include <sys/stat.h> +#include <sys/stat.h>
+#include <sys/socket.h> +#include <sys/socket.h>
+#include <sys/un.h> +#include <sys/un.h>
+#include <sys/fcntl.h>
+#include <netinet/in.h> +#include <netinet/in.h>
+#include <stdlib.h> +#include <stdlib.h>
+#include <fcntl.h>
+#include <errno.h> +#include <errno.h>
+#include <unistd.h> +#include <unistd.h>
+#include <string.h> +#include <string.h>

View File

@ -7,11 +7,11 @@ let inherit (lib) optional optionals; in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "knot-dns"; pname = "knot-dns";
version = "3.0.3"; version = "3.0.4";
src = fetchurl { src = fetchurl {
url = "https://secure.nic.cz/files/knot-dns/knot-${version}.tar.xz"; url = "https://secure.nic.cz/files/knot-dns/knot-${version}.tar.xz";
sha256 = "fbc51897ef0ed0639ebad59b988a91382b9544288a2db8254f0b1de433140e38"; sha256 = "451d8913a769b7e4bcb3e250a3181b448e28a82cfc58cea6f2509475d7327983";
}; };
outputs = [ "bin" "out" "dev" ]; outputs = [ "bin" "out" "dev" ];

View File

@ -14,4 +14,4 @@ in
import ./node-packages.nix { import ./node-packages.nix {
inherit (pkgs) fetchurl fetchgit; inherit (pkgs) fetchurl fetchgit;
inherit nodeEnv; inherit nodeEnv;
} }

View File

@ -2,15 +2,15 @@
buildGoModule rec { buildGoModule rec {
pname = "sql_exporter"; pname = "sql_exporter";
version = "0.3.0"; version = "0.4.0";
vendorSha256 = null; vendorSha256 = null;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "justwatchcom"; owner = "justwatchcom";
repo = "sql_exporter"; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "125brlxgwhkn3z5v0522gpm0sk6v905ghh05c4c3wf1hlm7bhnrc"; sha256 = "0dxzcd3b430xby741fdc85k4d2380jrh34xxskmdzxbf2kqdc5k8";
}; };
meta = with lib; { meta = with lib; {

View File

@ -12,16 +12,16 @@
# server, and the FHS userenv and corresponding NixOS module should # server, and the FHS userenv and corresponding NixOS module should
# automatically pick up the changes. # automatically pick up the changes.
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
version = "1.21.1.3842-b0c7a97d9"; version = "1.21.1.3876-3c3adfcb4";
pname = "plexmediaserver"; pname = "plexmediaserver";
# Fetch the source # Fetch the source
src = if stdenv.hostPlatform.system == "aarch64-linux" then fetchurl { src = if stdenv.hostPlatform.system == "aarch64-linux" then fetchurl {
url = "https://downloads.plex.tv/plex-media-server-new/${version}/debian/plexmediaserver_${version}_arm64.deb"; url = "https://downloads.plex.tv/plex-media-server-new/${version}/debian/plexmediaserver_${version}_arm64.deb";
sha256 = "0wq8q9dvdwciazidvh9plxjzngjr6ibg077yksxhy41dv14vkw7s"; sha256 = "1xpsmk5l0f0blqp5ba9n1w0npsk692p07hp4ipkq7yz3mfag50p0";
} else fetchurl { } else fetchurl {
url = "https://downloads.plex.tv/plex-media-server-new/${version}/debian/plexmediaserver_${version}_amd64.deb"; url = "https://downloads.plex.tv/plex-media-server-new/${version}/debian/plexmediaserver_${version}_amd64.deb";
sha256 = "14pa50kvgi4m5hbw4a0q7y3s4xn9ghvnm4vdim9g18p1khfmwmwp"; sha256 = "0dyw84x9h295428l7r8iqfb2vxkv0f1d68z1j2ka3wsw7cj1yq78";
}; };
outputs = [ "out" "basedb" ]; outputs = [ "out" "basedb" ];

View File

@ -741,4 +741,4 @@ in
bypassCache = true; bypassCache = true;
reconstructLock = true; reconstructLock = true;
}; };
} }

View File

@ -14,4 +14,4 @@ in
import ./node-packages-generated.nix { import ./node-packages-generated.nix {
inherit (pkgs) fetchurl fetchgit; inherit (pkgs) fetchurl fetchgit;
inherit nodeEnv; inherit nodeEnv;
} }

View File

@ -1492,4 +1492,4 @@ in
bypassCache = true; bypassCache = true;
reconstructLock = true; reconstructLock = true;
}; };
} }

View File

@ -10090,4 +10090,4 @@ in
tarball = nodeEnv.buildNodeSourceDist args; tarball = nodeEnv.buildNodeSourceDist args;
package = nodeEnv.buildNodePackage args; package = nodeEnv.buildNodePackage args;
shell = nodeEnv.buildNodeShell args; shell = nodeEnv.buildNodeShell args;
} }

View File

@ -14,4 +14,4 @@ in
import ./node-packages.nix { import ./node-packages.nix {
inherit (pkgs) fetchurl fetchgit; inherit (pkgs) fetchurl fetchgit;
inherit nodeEnv; inherit nodeEnv;
} }

View File

@ -23,18 +23,18 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "OpenTabletDriver"; pname = "OpenTabletDriver";
version = "0.4.2"; version = "0.5.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "InfinityGhost"; owner = "InfinityGhost";
repo = "OpenTabletDriver"; repo = "OpenTabletDriver";
rev = "v${version}"; rev = "v${version}";
sha256 = "048y7gjlk2yw4vh62px1d9w0va6ap1a0cndcpbirlyj9q6b8jxax"; sha256 = "1xi97nn5zb4fs3pyyqznvxnz07j30j3p967s7jigjmlm9321vkqp";
}; };
debPkg = fetchurl { debPkg = fetchurl {
url = "https://github.com/InfinityGhost/OpenTabletDriver/releases/download/v${version}/OpenTabletDriver.deb"; url = "https://github.com/InfinityGhost/OpenTabletDriver/releases/download/v${version}/OpenTabletDriver.deb";
sha256 = "13gg0dhvjy88h9lhcrp30fjiwgb9dzjsgk1k760pi1ki71a5vz2r"; sha256 = "06m2g5qvc02ga9f98f2ssa7wr2b7b2qm90qwaf17fz5z8rr0qmp0";
}; };
nativeBuildInputs = [ nativeBuildInputs = [
@ -134,8 +134,8 @@ stdenv.mkDerivation rec {
install -Dm644 $src/OpenTabletDriver.UX/Assets/otd.png -t $out/share/pixmaps install -Dm644 $src/OpenTabletDriver.UX/Assets/otd.png -t $out/share/pixmaps
# TODO: Ideally this should be build from OpenTabletDriver/OpenTabletDriver-udev instead # TODO: Ideally this should be build from OpenTabletDriver/OpenTabletDriver-udev instead
dpkg-deb --fsys-tarfile ${debPkg} | tar xf - ./usr/lib/udev/rules.d/30-opentabletdriver.rules dpkg-deb --fsys-tarfile ${debPkg} | tar xf - ./usr/lib/udev/rules.d/99-opentabletdriver.rules
install -Dm644 ./usr/lib/udev/rules.d/30-opentabletdriver.rules -t $out/lib/udev/rules.d install -Dm644 ./usr/lib/udev/rules.d/99-opentabletdriver.rules -t $out/lib/udev/rules.d
runHook postInstall runHook postInstall
''; '';
@ -155,8 +155,11 @@ stdenv.mkDerivation rec {
dontWrapGApps = true; dontWrapGApps = true;
dontStrip = true; dontStrip = true;
passthru.tests = { passthru = {
otd-runs = nixosTests.opentabletdriver; updateScript = ./update.sh;
tests = {
otd-runs = nixosTests.opentabletdriver;
};
}; };
meta = with lib; { meta = with lib; {

View File

@ -11,13 +11,13 @@
}) })
(fetchNuGet { (fetchNuGet {
name = "Eto.Forms"; name = "Eto.Forms";
version = "2.5.6"; version = "2.5.10";
sha256 = "035ny8jlanchwq16gcq0xb6ywabjl71c7qbpv26sjwg96na8vz51"; sha256 = "1d71wglk4ixfqfbm6sxmj753x5iwbar8i9zzjy3bh64fy1dn8lz7";
}) })
(fetchNuGet { (fetchNuGet {
name = "Eto.Platform.Gtk"; name = "Eto.Platform.Gtk";
version = "2.5.6"; version = "2.5.10";
sha256 = "1ijkjd3lc7x59yk369kxipzgk1zhyr9g6k319wc0n033vij26mwl"; sha256 = "1pkqvlfx7bzracnw19bl50i9jg4ym376vihmy9qq7m5z5nfdqn4g";
}) })
(fetchNuGet { (fetchNuGet {
name = "GdkSharp"; name = "GdkSharp";
@ -41,8 +41,8 @@
}) })
(fetchNuGet { (fetchNuGet {
name = "HidSharpCore"; name = "HidSharpCore";
version = "1.1.0"; version = "1.2.1";
sha256 = "122s5j3wrv8hcgnbxrnjqydvcfz7gdm8xq0wlwzrgwdjk44lr45a"; sha256 = "0vcw38skr9g691gxbzv3cf6y9rk11vh5pvcyjshdgii2z1z8a4g2";
}) })
(fetchNuGet { (fetchNuGet {
name = "MessagePack.Annotations"; name = "MessagePack.Annotations";
@ -120,9 +120,9 @@
sha256 = "0w2fbji1smd2y7x25qqibf1qrznmv4s6s0jvrbvr6alb7mfyqvh5"; sha256 = "0w2fbji1smd2y7x25qqibf1qrznmv4s6s0jvrbvr6alb7mfyqvh5";
}) })
(fetchNuGet { (fetchNuGet {
name = "Newtonsoft.Json"; name = "Octokit";
version = "12.0.3"; version = "0.48.0";
sha256 = "17dzl305d835mzign8r15vkmav2hq8l6g7942dfjpnzr17wwl89x"; sha256 = "17ria1shx04rb6knbaswpqndmwam6v3r3lsfsd486q584798ccn8";
}) })
(fetchNuGet { (fetchNuGet {
name = "PangoSharp"; name = "PangoSharp";
@ -204,6 +204,11 @@
version = "4.3.2"; version = "4.3.2";
sha256 = "1x0g58pbpjrmj2x2qw17rdwwnrcl0wvim2hdwz48lixvwvp22n9c"; sha256 = "1x0g58pbpjrmj2x2qw17rdwwnrcl0wvim2hdwz48lixvwvp22n9c";
}) })
(fetchNuGet {
name = "SharpZipLib";
version = "1.3.1";
sha256 = "09zypjfils38143da507s5fi4hzvdlz32wfav219hksnpl35y8x0";
})
(fetchNuGet { (fetchNuGet {
name = "StreamJsonRpc"; name = "StreamJsonRpc";
version = "2.6.121"; version = "2.6.121";
@ -229,11 +234,6 @@
version = "2.0.0-beta1.20253.1"; version = "2.0.0-beta1.20253.1";
sha256 = "16saf1fm9q80bb624fkqz0ksrwpnbw9617d7xg3jib7a2wgagm2r"; sha256 = "16saf1fm9q80bb624fkqz0ksrwpnbw9617d7xg3jib7a2wgagm2r";
}) })
(fetchNuGet {
name = "System.CommandLine";
version = "2.0.0-beta1.20303.1";
sha256 = "0isnz8ipqlqim06hf56zlaq2vnsy5facvf5nvq6kzm5h1dm3l2vn";
})
(fetchNuGet { (fetchNuGet {
name = "System.ComponentModel.Annotations"; name = "System.ComponentModel.Annotations";
version = "4.7.0"; version = "4.7.0";
@ -319,11 +319,6 @@
version = "4.3.0"; version = "4.3.0";
sha256 = "1gfj800078kggcgl0xyl00a6y5k4wwh2k2qm69rjy22wbmq7fy4p"; sha256 = "1gfj800078kggcgl0xyl00a6y5k4wwh2k2qm69rjy22wbmq7fy4p";
}) })
(fetchNuGet {
name = "System.Numerics.Vectors";
version = "4.5.0";
sha256 = "1kzrj37yzawf1b19jq0253rcs8hsq1l2q8g69d7ipnhzb0h97m59";
})
(fetchNuGet { (fetchNuGet {
name = "System.Reflection.Emit.Lightweight"; name = "System.Reflection.Emit.Lightweight";
version = "4.6.0"; version = "4.6.0";

View File

@ -14,6 +14,14 @@ if [[ "$new_version" == "$old_version" ]]; then
[[ "${1}" != "--force" ]] && exit 0 [[ "${1}" != "--force" ]] && exit 0
fi fi
# Updating the hash of deb package manually since there seems to be no way to do it automatically
oldDebPkgUrl="https://github.com/InfinityGhost/OpenTabletDriver/releases/download/v${old_version}/OpenTabletDriver.deb";
newDebPkgUrl="https://github.com/InfinityGhost/OpenTabletDriver/releases/download/v${new_version}/OpenTabletDriver.deb";
oldDebSha256=$(nix-prefetch-url "$oldDebPkgUrl")
newDebSha256=$(nix-prefetch-url "$newDebPkgUrl")
echo "oldDebSha256: $oldDebSha256 newDebSha256: $newDebSha256"
sed -i ./default.nix -re "s|\"$oldDebSha256\"|\"$newDebSha256\"|"
cd ../../../.. cd ../../../..
update-source-version opentabletdriver "$new_version" update-source-version opentabletdriver "$new_version"
store_src="$(nix-build . -A opentabletdriver.src --no-out-link)" store_src="$(nix-build . -A opentabletdriver.src --no-out-link)"

View File

@ -9,7 +9,7 @@ stdenv.mkDerivation rec {
}; };
meta = with lib; { meta = with lib; {
homepage = "http://cis.poly.edu/zdelta"; homepage = "http://cis.poly.edu/zdelta";
platforms = platforms.linux; platforms = platforms.linux;
license = licenses.zlib; license = licenses.zlib;
}; };

View File

@ -14,4 +14,4 @@ in
import ./node-packages.nix { import ./node-packages.nix {
inherit (pkgs) fetchurl fetchgit; inherit (pkgs) fetchurl fetchgit;
inherit nodeEnv; inherit nodeEnv;
} }

View File

@ -13266,4 +13266,4 @@ in
tarball = nodeEnv.buildNodeSourceDist args; tarball = nodeEnv.buildNodeSourceDist args;
package = nodeEnv.buildNodePackage args; package = nodeEnv.buildNodePackage args;
shell = nodeEnv.buildNodeShell args; shell = nodeEnv.buildNodeShell args;
} }

View File

@ -22,8 +22,8 @@ python2Packages.buildPythonApplication rec {
meta = with lib; { meta = with lib; {
description = "Redact and strip metadata from documents before publishing"; description = "Redact and strip metadata from documents before publishing";
longDescription = '' longDescription = ''
PDF Redact Tools helps with securely redacting and stripping metadata PDF Redact Tools helps with securely redacting and stripping metadata
from documents before publishing. Note that this is not a security tool. from documents before publishing. Note that this is not a security tool.
It uses ImageMagick to parse PDFs. While ImageMagick is a versatile tool, it has It uses ImageMagick to parse PDFs. While ImageMagick is a versatile tool, it has
a history of several security bugs. A malicious PDF could exploit a bug in a history of several security bugs. A malicious PDF could exploit a bug in
ImageMagick to take over your computer. If you're working with potentially ImageMagick to take over your computer. If you're working with potentially

View File

@ -4,13 +4,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "disfetch"; pname = "disfetch";
version = "1.13"; version = "1.14";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "llathasa-veleth"; owner = "llathasa-veleth";
repo = "disfetch"; repo = "disfetch";
rev = version; rev = version;
sha256 = "14vccp1z0g2hr9alx2ydz29hfa4xfv9irdjsvqm94fbyi5fa87k0"; sha256 = "0p5pj8d761gz95ar35s8q6lrybrg9jik33kwnsxvb14n990kya0p";
}; };
dontBuild = true; dontBuild = true;

View File

@ -17,11 +17,11 @@ let
pname = "bitwarden"; pname = "bitwarden";
version = { version = {
x86_64-linux = "1.23.0"; x86_64-linux = "1.23.1";
}.${system} or ""; }.${system} or "";
sha256 = { sha256 = {
x86_64-linux = "1z1r8327xymqf2h98wb2fb02s41pxc6fh5w4bxmdgpx7k1jx5kvg"; x86_64-linux = "1jv6w1g6b9c4xa5zy7pgzrkn8k4pyy3cdkh0nw2czn1cw2gaccs1";
}.${system} or ""; }.${system} or "";
meta = with lib; { meta = with lib; {

View File

@ -1,11 +1,11 @@
{ lib, stdenv, fetchurl }: { lib, stdenv, fetchurl }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "chkrootkit-0.53"; name = "chkrootkit-0.54";
src = fetchurl { src = fetchurl {
url = "ftp://ftp.pangeia.com.br/pub/seg/pac/${name}.tar.gz"; url = "ftp://ftp.pangeia.com.br/pub/seg/pac/${name}.tar.gz";
sha256 = "1da5ry3p7jb6xs6xlfml1ly09q2rs5q6n5axif17d29k7gixlqkj"; sha256 = "sha256-FUySaSH1PbYHKKfLyXyohli2lMFLfSiO/jg+CEmRVgc=";
}; };
# TODO: a lazy work-around for linux build failure ... # TODO: a lazy work-around for linux build failure ...

View File

@ -0,0 +1,25 @@
{ buildGoModule
, fetchFromGitHub
, lib
}:
buildGoModule rec {
pname = "sigurlx";
version = "2.1.0";
src = fetchFromGitHub {
owner = "drsigned";
repo = pname;
rev = "v${version}";
sha256 = "1q5vy05387qx7h4xcccvn2z2ks1kiff3mfbd2w3w0l0a4qgz74xs";
};
vendorSha256 = "1bp6bf99rxlyg91pn1y228q18lawpykmvkl22cydmclms0q0n238";
meta = with lib; {
description = "Tool to map the attack surface of web applications";
homepage = "https://github.com/drsigned/sigurlx";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}

View File

@ -6,11 +6,11 @@
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "monit-5.27.1"; name = "monit-5.27.2";
src = fetchurl { src = fetchurl {
url = "${meta.homepage}dist/${name}.tar.gz"; url = "${meta.homepage}dist/${name}.tar.gz";
sha256 = "0lgdhif6x11fcpli0qn138rpdvrfnwmkzsy4lc9pas45c78hhx7m"; sha256 = "sha256-2ICceNXcHtenujKlpVxRFIVRMsxNpIBfjTqvjPRuqkw=";
}; };
nativeBuildInputs = [ bison flex ]; nativeBuildInputs = [ bison flex ];

View File

@ -11626,6 +11626,7 @@ in
bingrep = callPackage ../development/tools/analysis/bingrep { }; bingrep = callPackage ../development/tools/analysis/bingrep { };
binutils-unwrapped = callPackage ../development/tools/misc/binutils { binutils-unwrapped = callPackage ../development/tools/misc/binutils {
autoreconfHook = if targetPlatform.isiOS then autoreconfHook269 else autoreconfHook;
# FHS sys dirs presumably only have stuff for the build platform # FHS sys dirs presumably only have stuff for the build platform
noSysDirs = (stdenv.targetPlatform != stdenv.hostPlatform) || noSysDirs; noSysDirs = (stdenv.targetPlatform != stdenv.hostPlatform) || noSysDirs;
}; };
@ -13183,6 +13184,8 @@ in
cointop = callPackage ../applications/misc/cointop { }; cointop = callPackage ../applications/misc/cointop { };
cog = callPackage ../development/web/cog { };
ctl = callPackage ../development/libraries/ctl { }; ctl = callPackage ../development/libraries/ctl { };
ctpp2 = callPackage ../development/libraries/ctpp2 { }; ctpp2 = callPackage ../development/libraries/ctpp2 { };
@ -15455,6 +15458,10 @@ in
libixp_hg = callPackage ../development/libraries/libixp-hg { }; libixp_hg = callPackage ../development/libraries/libixp-hg { };
libwpe = callPackage ../development/libraries/libwpe { };
libwpe-fdo = callPackage ../development/libraries/libwpe/fdo.nix { };
libyaml = callPackage ../development/libraries/libyaml { }; libyaml = callPackage ../development/libraries/libyaml { };
libyamlcpp = callPackage ../development/libraries/libyaml-cpp { }; libyamlcpp = callPackage ../development/libraries/libyaml-cpp { };
@ -18231,6 +18238,8 @@ in
sickrage = callPackage ../servers/sickbeard/sickrage.nix { }; sickrage = callPackage ../servers/sickbeard/sickrage.nix { };
sigurlx = callPackage ../tools/security/sigurlx { };
sipwitch = callPackage ../servers/sip/sipwitch { }; sipwitch = callPackage ../servers/sip/sipwitch { };
slimserver = callPackage ../servers/slimserver { }; slimserver = callPackage ../servers/slimserver { };
@ -27097,6 +27106,7 @@ in
zeroadPackages = dontRecurseIntoAttrs (callPackage ../games/0ad { zeroadPackages = dontRecurseIntoAttrs (callPackage ../games/0ad {
wxGTK = wxGTK30; wxGTK = wxGTK30;
stdenv = gcc9Stdenv;
}); });
zeroad = zeroadPackages.zeroad; zeroad = zeroadPackages.zeroad;
@ -29510,7 +29520,9 @@ in
phonetisaurus = callPackage ../development/libraries/phonetisaurus {}; phonetisaurus = callPackage ../development/libraries/phonetisaurus {};
duti = callPackage ../os-specific/darwin/duti {}; duti = callPackage ../os-specific/darwin/duti {
inherit (darwin.apple_sdk.frameworks) ApplicationServices;
};
dnstracer = callPackage ../tools/networking/dnstracer { dnstracer = callPackage ../tools/networking/dnstracer {
inherit (darwin) libresolv; inherit (darwin) libresolv;

View File

@ -19038,6 +19038,7 @@ let
description = "lib/Safe/Hole.pm"; description = "lib/Safe/Hole.pm";
license = with lib.licenses; [ artistic1 gpl1Plus ]; license = with lib.licenses; [ artistic1 gpl1Plus ];
homepage = "https://github.com/toddr/Safe-Hole"; homepage = "https://github.com/toddr/Safe-Hole";
broken = stdenv.isDarwin;
}; };
}; };