···2233with lib;
44let
55- findWinner = candidates: winner:
66- any (x: x == winner) candidates;
77-88- # winners is an ordered list where first item wins over 2nd etc
99- mergeAnswer = winners: locs: defs:
1010- let
1111- values = map (x: x.value) defs;
1212- inter = intersectLists values winners;
1313- winner = head winners;
1414- in
1515- if defs == [] then abort "This case should never happen."
1616- else if winner == [] then abort "Give a valid list of winner"
1717- else if inter == [] then mergeOneOption locs defs
1818- else if findWinner values winner then
1919- winner
2020- else
2121- mergeAnswer (tail winners) locs defs;
2222-235 mergeFalseByDefault = locs: defs:
246 if defs == [] then abort "This case should never happen."
257 else if any (x: x == false) (getValues defs) then false
···2810 kernelItem = types.submodule {
2911 options = {
3012 tristate = mkOption {
3131- type = types.enum [ "y" "m" "n" null ] // {
3232- merge = mergeAnswer [ "y" "m" "n" ];
3333- };
1313+ type = types.enum [ "y" "m" "n" null ];
3414 default = null;
3515 internal = true;
3616 visible = true;
···4242 homepage = "https://www.mopidy.com/";
4343 description = ''
4444 An extensible music server that plays music from local disk, Spotify,
4545- SoundCloud, Google Play Music, and more
4545+ SoundCloud, and more
4646 '';
4747 license = licenses.asl20;
4848 maintainers = [ maintainers.fpletz ];
-45
pkgs/applications/audio/tuijam/default.nix
···11-{ buildPythonApplication
22-, fetchFromGitHub
33-, lib
44-, python3Packages
55-}:
66-77-buildPythonApplication rec {
88- pname = "tuijam";
99- version = "unstable-2020-06-05";
1010-1111- src = fetchFromGitHub {
1212- owner = "cfangmeier";
1313- repo = pname;
1414- rev = "7baec6f6e80ee90da0d0363b430dd7d5695ff03b";
1515- sha256 = "1l0s88jvj99jkxnczw5nfj78m8vihh29g815n4mg9jblad23mgx5";
1616- };
1717-1818- buildInputs = [ python3Packages.Babel ];
1919-2020- # the package has no tests
2121- doCheck = false;
2222-2323- propagatedBuildInputs = with python3Packages; [
2424- gmusicapi
2525- google-api-python-client
2626- mpv
2727- pydbus
2828- pygobject3
2929- pyyaml
3030- requests
3131- rsa
3232- urwid
3333- ];
3434-3535- meta = with lib; {
3636- description = "A fancy TUI client for Google Play Music";
3737- longDescription = ''
3838- TUIJam seeks to make a simple, attractive, terminal-based interface to
3939- listening to music for Google Play Music All-Access subscribers.
4040- '';
4141- homepage = "https://github.com/cfangmeier/tuijam";
4242- license = licenses.mit;
4343- maintainers = with maintainers; [ kalbasit ];
4444- };
4545-}
···12121313buildPythonPackage rec {
1414 pname = "botocore";
1515- version = "1.20.20"; # N.B: if you change this, change boto3 and awscli to a matching version
1515+ version = "1.20.22"; # N.B: if you change this, change boto3 and awscli to a matching version
16161717 src = fetchPypi {
1818 inherit pname version;
1919- sha256 = "sha256-gMMqgfse6L36B0p5v7iFuyAG6Kl4LyNTwMn2OScE4To=";
1919+ sha256 = "sha256-MuhvnRhVW9O03GlKJjmhwfyMi0KknaVDuVrJ0ExAdws=";
2020 };
21212222 propagatedBuildInputs = [
···6565 PANIC_TIMEOUT = freeform "-1";
66666767 GCC_PLUGINS = yes; # Enable gcc plugin options
6868- # Gather additional entropy at boot time for systems that may = no;ot have appropriate entropy sources.
6868+ # Gather additional entropy at boot time for systems that may not have appropriate entropy sources.
6969 GCC_PLUGIN_LATENT_ENTROPY = yes;
70707171 GCC_PLUGIN_STRUCTLEAK = whenAtLeast "4.11" yes; # A port of the PaX structleak plugin
···7878 ACPI_CUSTOM_METHOD = no; # Allows writing directly to physical memory
7979 PROC_KCORE = no; # Exposes kernel text image layout
8080 INET_DIAG = no; # Has been used for heap based attacks in the past
8181+8282+ # INET_DIAG=n causes the following options to not exist anymore, but since they are defined in common-config.nix,
8383+ # make them optional
8484+ INET_DIAG_DESTROY = option no;
8585+ INET_RAW_DIAG = option no;
8686+ INET_TCP_DIAG = option no;
8787+ INET_UDP_DIAG = option no;
8888+ INET_MPTCP_DIAG = option no;
81898290 # Use -fstack-protector-strong (gcc 4.9+) for best stack canary coverage.
8391 CC_STACKPROTECTOR_REGULAR = whenOlder "4.18" no;
···2828in
2929with py.pkgs; buildPythonApplication rec {
3030 pname = "awscli";
3131- version = "1.19.20"; # N.B: if you change this, change botocore and boto3 to a matching version too
3131+ version = "1.19.22"; # N.B: if you change this, change botocore and boto3 to a matching version too
32323333 src = fetchPypi {
3434 inherit pname version;
3535- sha256 = "sha256-Fu+KuGOGDUMXgwUKabZjaCBQHdlLLBwPJXU4rlohKNs=";
3535+ sha256 = "sha256-yu2IltNbOLB44M+0u5lTjHHllDndBHp4rNfMwFOKMgw=";
3636 };
37373838 # https://github.com/aws/aws-cli/issues/4837
···260260 goimports = gotools; # added 2018-09-16
261261 gometalinter = throw "gometalinter was abandoned by upstream. Consider switching to golangci-lint instead"; # added 2020-04-23
262262 google-gflags = gflags; # added 2019-07-25
263263+ google-music-scripts = throw "google-music-scripts has been removed because Google Play Music was discontinued"; # added 2021-03-07
264264+ google-musicmanager = throw "google-musicmanager has been removed because Google Play Music was discontinued"; # added 2021-03-07
265265+ google-play-music-desktop-player = throw "google-play-music-desktop-player has been removed because Google Play Music was discontinued"; # added 2021-03-07
263266 googleAuthenticator = google-authenticator; # added 2016-10-16
264267 grantlee5 = libsForQt5.grantlee; # added 2015-12-19
265268 gsettings_desktop_schemas = gsettings-desktop-schemas; # added 2018-02-25
···384387 mcgrid = throw "mcgrid has been removed from nixpkgs, as it's not compatible with rivet 3"; # added 2020-05-23
385388 mcomix = throw "mcomix has been removed from nixpkgs, as it's unmaintained; try mcomix3 a Python 3 fork"; # added 2019-12-10, modified 2020-11-25
386389 mirage = throw "mirage has been femoved from nixpkgs, as it's unmaintained"; # added 2019-12-10
390390+ mopidy-gmusic = throw "mopidy-gmusic has been removed because Google Play Music was discontinued"; # added 2021-03-07
387391 mopidy-local-images = throw "mopidy-local-images has been removed as it's unmaintained. It's functionality has been merged into the mopidy-local extension."; # added 2020-10-18
388392 mopidy-local-sqlite = throw "mopidy-local-sqlite has been removed as it's unmaintained. It's functionality has been merged into the mopidy-local extension."; # added 2020-10-18
389393 mysql-client = hiPrio mariadb.client;
···731735 trilium = throw "trilium has been removed. Please use trilium-desktop instead."; # added 2020-04-29
732736 truecrypt = veracrypt; # added 2018-10-24
733737 tshark = wireshark-cli; # added 2018-04-25
738738+ tuijam = throw "tuijam has been removed because Google Play Music was discontinued"; # added 2021-03-07
734739 uberwriter = apostrophe; # added 2020-04-23
735740 ubootBeagleboneBlack = ubootAmx335xEVM; # added 2020-01-21
736741 ucsFonts = ucs-fonts; # added 2016-07-15