Conflicts: pkgs/top-level/aliases.nixmain
commit
39669ea2b6
@ -0,0 +1,40 @@ |
||||
{ config, lib, pkgs, ... }: |
||||
|
||||
with lib; |
||||
|
||||
let cfg = config.services.xserver.desktopManager.retroarch; |
||||
|
||||
in { |
||||
options.services.xserver.desktopManager.retroarch = { |
||||
enable = mkEnableOption "RetroArch"; |
||||
|
||||
package = mkOption { |
||||
type = types.package; |
||||
default = pkgs.retroarch; |
||||
defaultText = literalExpression "pkgs.retroarch"; |
||||
example = literalExpression "pkgs.retroarch-full"; |
||||
description = "RetroArch package to use."; |
||||
}; |
||||
|
||||
extraArgs = mkOption { |
||||
type = types.listOf types.str; |
||||
default = [ ]; |
||||
example = [ "--verbose" "--host" ]; |
||||
description = "Extra arguments to pass to RetroArch."; |
||||
}; |
||||
}; |
||||
|
||||
config = mkIf cfg.enable { |
||||
services.xserver.desktopManager.session = [{ |
||||
name = "RetroArch"; |
||||
start = '' |
||||
${cfg.package}/bin/retroarch -f ${escapeShellArgs cfg.extraArgs} & |
||||
waitPID=$! |
||||
''; |
||||
}]; |
||||
|
||||
environment.systemPackages = [ cfg.package ]; |
||||
}; |
||||
|
||||
meta.maintainers = with maintainers; [ j0hax ]; |
||||
} |
@ -0,0 +1,49 @@ |
||||
import ./make-test-python.nix ({ pkgs, ... }: |
||||
|
||||
{ |
||||
name = "retroarch"; |
||||
meta = with pkgs.lib.maintainers; { maintainers = [ j0hax ]; }; |
||||
|
||||
machine = { ... }: |
||||
|
||||
{ |
||||
imports = [ ./common/user-account.nix ]; |
||||
services.xserver.enable = true; |
||||
services.xserver.desktopManager.retroarch = { |
||||
enable = true; |
||||
package = pkgs.retroarchFull; |
||||
}; |
||||
services.xserver.displayManager = { |
||||
sddm.enable = true; |
||||
defaultSession = "RetroArch"; |
||||
autoLogin = { |
||||
enable = true; |
||||
user = "alice"; |
||||
}; |
||||
}; |
||||
}; |
||||
|
||||
testScript = { nodes, ... }: |
||||
let |
||||
user = nodes.machine.config.users.users.alice; |
||||
xdo = "${pkgs.xdotool}/bin/xdotool"; |
||||
in '' |
||||
with subtest("Wait for login"): |
||||
start_all() |
||||
machine.wait_for_file("${user.home}/.Xauthority") |
||||
machine.succeed("xauth merge ${user.home}/.Xauthority") |
||||
|
||||
with subtest("Check RetroArch started"): |
||||
machine.wait_until_succeeds("pgrep retroarch") |
||||
machine.wait_for_window("^RetroArch ") |
||||
|
||||
with subtest("Check configuration created"): |
||||
machine.wait_for_file("${user.home}/.config/retroarch/retroarch.cfg") |
||||
|
||||
with subtest("Wait to get a screenshot"): |
||||
machine.execute( |
||||
"${xdo} key Alt+F1 sleep 10" |
||||
) |
||||
machine.screenshot("screen") |
||||
''; |
||||
}) |
@ -0,0 +1,41 @@ |
||||
{ lib |
||||
, fetchCrate |
||||
, rustPlatform |
||||
, pkg-config |
||||
, openssl |
||||
, dbus |
||||
, sqlite |
||||
, stdenv |
||||
, darwin |
||||
}: |
||||
|
||||
rustPlatform.buildRustPackage rec { |
||||
pname = "leetcode-cli"; |
||||
version = "0.3.10"; |
||||
|
||||
src = fetchCrate { |
||||
inherit pname version; |
||||
sha256 = "SkJLA49AXNTpiWZByII2saYLyN3bAAJTlCvhamlOEXA="; |
||||
}; |
||||
|
||||
cargoSha256 = "xhKF4qYOTdt8iCSPY5yT8tH3l54HdkOAIS2SBGzqsdo="; |
||||
|
||||
nativeBuildInputs = [ |
||||
pkg-config |
||||
]; |
||||
|
||||
buildInputs = [ |
||||
openssl |
||||
dbus |
||||
sqlite |
||||
] ++ lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Security ]; |
||||
|
||||
meta = with lib; { |
||||
description = "May the code be with you 👻"; |
||||
longDescription = "Use leetcode.com in command line"; |
||||
homepage = "https://github.com/clearloop/leetcode-cli"; |
||||
license = licenses.mit; |
||||
maintainers = with maintainers; [ congee ]; |
||||
mainProgram = "leetcode"; |
||||
}; |
||||
} |
@ -0,0 +1,36 @@ |
||||
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }: |
||||
|
||||
buildGoModule rec { |
||||
pname = "glooctl"; |
||||
version = "1.10.6"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "solo-io"; |
||||
repo = "gloo"; |
||||
rev = "v${version}"; |
||||
sha256 = "sha256-t63tK0hwbVnUP9UxS8g3uzL3rBvKR10vu1E85mNV3E0="; |
||||
}; |
||||
|
||||
subPackages = [ "projects/gloo/cli/cmd" ]; |
||||
vendorSha256 = "sha256-IBuAUKbX1esx2p4Q/b3UxQH9S3VVNYZcn5vRKtmhO0A="; |
||||
|
||||
nativeBuildInputs = [ installShellFiles ]; |
||||
|
||||
postInstall = '' |
||||
mv $out/bin/cmd $out/bin/glooctl |
||||
|
||||
export HOME=$TMP |
||||
installShellCompletion --cmd glooctl \ |
||||
--bash <($out/bin/glooctl completion bash) \ |
||||
--zsh <($out/bin/glooctl completion zsh) |
||||
''; |
||||
|
||||
ldflags = [ "-s" "-w" "-X github.com/solo-io/gloo/pkg/version.Version=${version}" ]; |
||||
|
||||
meta = with lib; { |
||||
description = "glooctl is the unified CLI for Gloo"; |
||||
homepage = "https://docs.solo.io/gloo-edge/latest/reference/cli/glooctl/"; |
||||
license = licenses.asl20; |
||||
maintainers = with maintainers; [ nelsonjeppesen ]; |
||||
}; |
||||
} |
@ -1,9 +0,0 @@ |
||||
This plugin is needed to test celery itself, so it can't depend on celery.
|
||||
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -6,3 +6,3 @@ from distutils.core import setup
|
||||
install_requires = \
|
||||
-['celery >= 4.4.0']
|
||||
+[]
|
||||
|
@ -0,0 +1,22 @@ |
||||
{ lib, fetchFromGitHub, rustPlatform }: |
||||
|
||||
rustPlatform.buildRustPackage rec { |
||||
pname = "jless"; |
||||
version = "0.7.1"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "PaulJuliusMartinez"; |
||||
repo = "jless"; |
||||
rev = "v${version}"; |
||||
sha256 = "sha256-gBqyo/N/qF6HCTUrSKNVLiL1fc/JTfip1kNpNCBzRT8="; |
||||
}; |
||||
|
||||
cargoSha256 = "sha256-PbX61RVbrI2kTuyXK+LhQdJDvNo3KjIQH5eBbL6iUBM="; |
||||
|
||||
meta = with lib; { |
||||
description = "A command-line pager for JSON data"; |
||||
homepage = "https://github.com/PaulJuliusMartinez/jless"; |
||||
license = licenses.mit; |
||||
maintainers = with maintainers; [ jfchevrette ]; |
||||
}; |
||||
} |
@ -1,10 +0,0 @@ |
||||
--- a/src/CMakeLists.txt
|
||||
+++ b/src/CMakeLists.txt
|
||||
@@ -802,7 +802,6 @@
|
||||
install(CODE "
|
||||
set(BU_CHMOD_BUNDLE_ITEMS ON)
|
||||
include(BundleUtilities)
|
||||
- fixup_bundle(\"\${CMAKE_INSTALL_PREFIX}/${BUNDLE_PATH}\" \"\" \"\${CMAKE_INSTALL_PREFIX}/${BINDIR}\")
|
||||
" COMPONENT Runtime)
|
||||
endif()
|
||||
|
@ -1,10 +0,0 @@ |
||||
--- a/src/main.cpp
|
||||
+++ b/src/main.cpp
|
||||
@@ -17,6 +17,7 @@
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
+#include <cstdint>
|
||||
#include "irrlicht.h" // createDevice
|
||||
#include "irrlichttypes_extrabloated.h"
|
||||
#include "chat_interface.h"
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue