git.iko.soy/typeable/nixpkgs
on master help sign in
Merge master into staging-next
commit4589a04299c8769c4c0d018ee36d262a2b46ae79 authorFrederik Rietdijk <fridh@fridh.nl> dateTue 25 Jun 2019, 16:26 (7 years ago) parent145a62032a7e35
14 files changed+123−31
nixos/modules/services/backup/duplicati.nix+16−2 nixos/modules/services/databases/cassandra.nix+1−1 nixos/modules/virtualisation/containers.nix+1−1 pkgs/development/compilers/elm/default.nix+2−2 pkgs/development/libraries/wxwidgets/3.1/default.nix+1−1 pkgs/development/python-modules/pycategories/default.nix+35 pkgs/development/python-modules/pycategories/infix.nix+23 pkgs/games/freeciv/default.nix+30−17 pkgs/misc/acpilight/default.nix+2−2 pkgs/servers/couchpotato/default.nix+2−3 pkgs/tools/package-management/cargo-license/default.nix+1 pkgs/tools/text/vale/default.nix+2−2 pkgs/top-level/all-packages.nix+5 pkgs/top-level/python-packages.nix+2
nixos/modules/services/backup/duplicati.nix+16−2
@@ -26,6 +26,15 @@ in
2626 Set it to "any" to listen on all available interfaces
2727 '';
2828 };
29+
30+ user = mkOption {
31+ default = "duplicati";
32+ type = types.str;
33+ description = ''
34+ Duplicati runs as it's own user. It will only be able to backup world-readable files.
35+ Run as root with special care.
36+ '';
37+ };
2938 };
3039 };
3140
@@ -37,14 +46,19 @@ in
3746 after = [ "network.target" ];
3847 wantedBy = [ "multi-user.target" ];
3948 serviceConfig = {
40− User = "duplicati";
49+ User = cfg.user;
50+ PermissionsStartOnly = true;
4151 Group = "duplicati";
4252 ExecStart = "${pkgs.duplicati}/bin/duplicati-server --webservice-interface=${cfg.interface} --webservice-port=${toString cfg.port} --server-datafolder=/var/lib/duplicati";
4353 Restart = "on-failure";
4454 };
55+ preStart = ''
56+ mkdir -p /var/lib/duplicati
57+ chown -R ${cfg.user}:duplicati /var/lib/duplicati
58+ '';
4559 };
4660
47− users.users.duplicati = {
61+ users.users.duplicati = lib.optionalAttrs (cfg.user == "duplicati") {
4862 uid = config.ids.uids.duplicati;
4963 home = "/var/lib/duplicati";
5064 createHome = true;
nixos/modules/services/databases/cassandra.nix+1−1
@@ -71,7 +71,7 @@ in {
7171 '';
7272 clusterName = mkOption {
7373 type = types.str;
74− default = "NixOS Test Cluster";
74+ default = "Test Cluster";
7575 description = ''
7676 The name of the cluster.
7777 This setting prevents nodes in one logical cluster from joining
nixos/modules/virtualisation/containers.nix+1−1
@@ -445,7 +445,7 @@ in
445445 type = types.bool;
446446 default = !config.boot.isContainer;
447447 description = ''
448− Whether to enable support for nixos containers.
448+ Whether to enable support for NixOS containers.
449449 '';
450450 };
451451
pkgs/development/compilers/elm/default.nix+2−2
@@ -1,4 +1,4 @@
1−{ lib, stdenv
1+{ lib, stdenv, pkgs
22, haskell, nodejs
33, fetchurl, fetchpatch, makeWrapper, writeScriptBin }:
44let
@@ -8,7 +8,7 @@ let
88
99 elmNodePackages =
1010 import ./packages/node-composition.nix {
11− inherit nodejs;
11+ inherit nodejs pkgs;
1212 inherit (stdenv.hostPlatform) system;
1313 };
1414
pkgs/development/libraries/wxwidgets/3.1/default.nix+1−1
@@ -77,7 +77,7 @@ stdenv.mkDerivation rec {
7777 ";
7878
7979 passthru = {
80− inherit compat24 compat26 unicode;
80+ inherit compat28 compat30 unicode;
8181 gtk = if withGtk2 then gtk2 else gtk3;
8282 };
8383
pkgs/development/python-modules/pycategories/default.nixnew file+35
@@ -0,0 +1,35 @@
1+{ buildPythonPackage
2+, callPackage
3+, pytestcov
4+, fetchPypi
5+, lib
6+, pytest
7+, pythonOlder
8+, pytestrunner
9+}:
10+
11+buildPythonPackage rec {
12+ pname = "pycategories";
13+ version = "1.2.0";
14+ disabled = pythonOlder "3.4";
15+
16+ src = fetchPypi {
17+ inherit pname version;
18+ sha256 = "bd70ecb5e94e7659e564ea153f0c7673291dc37c526c246800fc08d6c5378099";
19+ };
20+
21+ nativeBuildInputs = [ pytestrunner ];
22+
23+ # Is private because the author states it's unmaintained
24+ # and shouldn't be used in production code
25+ propagatedBuildInputs = [ (callPackage ./infix.nix { }) ];
26+
27+ checkInputs = [ pytest pytestcov ];
28+
29+ meta = with lib; {
30+ homepage = "https://gitlab.com/danielhones/pycategories";
31+ description = "Implementation of some concepts from category theory";
32+ license = licenses.mit;
33+ maintainers = with maintainers; [ dmvianna ];
34+ };
35+}
pkgs/development/python-modules/pycategories/infix.nixnew file+23
@@ -0,0 +1,23 @@
1+{ buildPythonPackage
2+, lib
3+, fetchPypi
4+}:
5+
6+buildPythonPackage rec {
7+ pname = "infix";
8+ version = "1.2";
9+
10+ src = fetchPypi {
11+ inherit pname version;
12+ sha256 = "a1bfdcf875bc072f41e426d0673f2e3017750743bb90cc725fffb292eb09648c";
13+ };
14+
15+ # No tests
16+ doCheck = false;
17+
18+ meta = {
19+ homepage = "https://github.com/borntyping/python-infix";
20+ description = "A decorator that allows functions to be used as infix functions";
21+ license = lib.licenses.mit;
22+ };
23+}
pkgs/games/freeciv/default.nix+30−17
@@ -1,6 +1,8 @@
1−{ stdenv, fetchurl, zlib, bzip2, pkgconfig, curl, lzma, gettext, libiconv
1+{ stdenv, fetchFromGitHub, autoreconfHook, lua5_3, pkgconfig, python
2+, zlib, bzip2, curl, lzma, gettext, libiconv
23, sdlClient ? true, SDL, SDL_mixer, SDL_image, SDL_ttf, SDL_gfx, freetype, fluidsynth
3−, gtkClient ? false, gtk2
4+, gtkClient ? false, gtk3
5+, qtClient ? false, qt5
46, server ? true, readline
57, enableSqlite ? true, sqlite
68}:
@@ -8,31 +10,42 @@
810let
911 inherit (stdenv.lib) optional optionals;
1012
11− name = "freeciv";
13+in stdenv.mkDerivation rec {
14+ pname = "freeciv";
1215 version = "2.6.0";
13−in
14−stdenv.mkDerivation {
15− name = "${name}-${version}";
16− inherit version;
17−
18− src = fetchurl {
19− url = "mirror://sourceforge/freeciv/${name}-${version}.tar.bz2";
20− sha256 = "16f9wsnn7073s6chzbm3819swd0iw019p9nrzr3diiynk28kj83w";
16+
17+ src = fetchFromGitHub {
18+ owner = "freeciv";
19+ repo = "freeciv";
20+ rev = "R${builtins.replaceStrings [ "." ] [ "_" ] version}";
21+ sha256 = "1b3q5k9wpv7z24svz01ybw8d8wlzkkdr6ia5hgp6cxk6vq67n67s";
2122 };
2223
23− nativeBuildInputs = [ pkgconfig ];
24+ postPatch = ''
25+ for f in {common,utility}/*.py; do
26+ substituteInPlace $f \
27+ --replace '/usr/bin/env python' ${python.interpreter}
28+ done
29+ '';
30+
31+ nativeBuildInputs = [ autoreconfHook pkgconfig ];
2432
25− buildInputs = [ zlib bzip2 curl lzma gettext libiconv ]
33+ buildInputs = [ lua5_3 zlib bzip2 curl lzma gettext libiconv ]
2634 ++ optionals sdlClient [ SDL SDL_mixer SDL_image SDL_ttf SDL_gfx freetype fluidsynth ]
27− ++ optionals gtkClient [ gtk2 ]
35+ ++ optionals gtkClient [ gtk3 ]
36+ ++ optionals qtClient [ qt5.qtbase ]
2837 ++ optional server readline
2938 ++ optional enableSqlite sqlite;
3039
3140 configureFlags = [ "--enable-shared" ]
3241 ++ optional sdlClient "--enable-client=sdl"
42+ ++ optionals qtClient [
43+ "--enable-client=qt"
44+ "--with-qt5-includes=${qt5.qtbase.dev}/include"
45+ ]
3346 ++ optional enableSqlite "--enable-fcdb=sqlite3"
3447 ++ optional (!gtkClient) "--enable-fcmp=cli"
35− ++ optional (!server) "--disable-server";
48+ ++ optional (!server) "--disable-server";
3649
3750 enableParallelBuilding = true;
3851
@@ -46,11 +59,11 @@ stdenv.mkDerivation {
4659 to the space age...
4760 '';
4861
49− homepage = http://freeciv.wikia.com/;
62+ homepage = http://www.freeciv.org; # http only
5063 license = licenses.gpl2;
5164
5265 maintainers = with maintainers; [ pierron ];
5366 platforms = platforms.unix;
54− hydraPlatforms = stdenv.lib.platforms.linux; # sdl-config times out on darwin
67+ hydraPlatforms = platforms.linux; # sdl-config times out on darwin
5568 };
5669}
pkgs/misc/acpilight/default.nix+2−2
@@ -2,12 +2,12 @@
22
33stdenv.mkDerivation rec {
44 pname = "acpilight";
5− version = "1.1";
5+ version = "1.2";
66
77 src = fetchgit {
88 url = "https://gitlab.com/wavexx/acpilight.git";
99 rev = "v${version}";
10− sha256 = "0kykrl71fb146vaq8207c3qp03h2djkn8hn6psryykk8gdzkv3xd";
10+ sha256 = "1r0r3nx6x6vkpal6vci0zaa1n9dfacypldf6k8fxg7919vzxdn1w";
1111 };
1212
1313 pyenv = python3.withPackages (pythonPackages: with pythonPackages; [
pkgs/servers/couchpotato/default.nix+2−3
@@ -29,9 +29,8 @@ buildPythonApplication rec {
2929 chmod +x $out/bin/*
3030 '';
3131
32− fixupPhase = ''
33− wrapProgram "$out/bin/couchpotato" --set PYTHONPATH "$PYTHONPATH:$out/${python.sitePackages}" \
34− --set PATH ${python}/bin
32+ postFixup = ''
33+ wrapProgram "$out/bin/couchpotato" --set PYTHONPATH "$PYTHONPATH:$out/${python.sitePackages}"
3534 '';
3635
3736 meta = {
pkgs/tools/package-management/cargo-license/default.nix+1
@@ -16,6 +16,7 @@ rustPlatform.buildRustPackage rec {
1616
1717 meta = with lib; {
1818 description = "Cargo subcommand to see license of dependencies";
19+ homepage = "https://github.com/onur/cargo-license";
1920 license = with licenses; [ mit ];
2021 maintainers = with maintainers; [ basvandijk ];
2122 platforms = platforms.all;
pkgs/tools/text/vale/default.nix+2−2
@@ -2,7 +2,7 @@
22
33buildGoPackage rec {
44 name = "vale-${version}";
5− version = "1.4.2";
5+ version = "1.4.3";
66
77 goPackagePath = "github.com/errata-ai/vale";
88
@@ -12,7 +12,7 @@ buildGoPackage rec {
1212 owner = "errata-ai";
1313 repo = "vale";
1414 rev = "v${version}";
15− sha256 = "180532jp6m2ryppkjszs8b8gmvx9h54c8423par3907bgdxyzqj8";
15+ sha256 = "1dgh2frf577048cacwnrl0xx5hha055z42sqq38lf07ybwyxdxms";
1616 };
1717
1818 meta = with stdenv.lib; {
pkgs/top-level/all-packages.nix+5
@@ -21527,6 +21527,11 @@ in
2152721527 sdlClient = false;
2152821528 };
2152921529
21530+ freeciv_qt = freeciv.override {
21531+ qtClient = true;
21532+ sdlClient = false;
21533+ };
21534+
2153021535 freedink = callPackage ../games/freedink { };
2153121536
2153221537 freeorion = callPackage ../games/freeorion { };
pkgs/top-level/python-packages.nix+2
@@ -686,6 +686,8 @@ in {
686686 inherit (pkgs) pkgconfig;
687687 };
688688
689+ pycategories = callPackage ../development/python-modules/pycategories { };
690+
689691 pycangjie = disabledIf (!isPy3k) (callPackage ../development/python-modules/pycangjie {
690692 inherit (pkgs) pkgconfig;
691693 });