Merge master into staging-next
This commit is contained in:
commit
89378919a6
|
@ -8501,6 +8501,12 @@
|
|||
githubId = 7588406;
|
||||
name = "Andrew R. M.";
|
||||
};
|
||||
nkalupahana = {
|
||||
email = "hello@nisa.la";
|
||||
github = "nkalupahana";
|
||||
githubId = 7347290;
|
||||
name = "Nisala Kalupahana";
|
||||
};
|
||||
nloomans = {
|
||||
email = "noah@nixos.noahloomans.com";
|
||||
github = "nloomans";
|
||||
|
|
|
@ -152,7 +152,6 @@ let
|
|||
serviceConfig = {
|
||||
# The service's only task is to ensure that the specified path exists
|
||||
Type = "oneshot";
|
||||
WorkingDirectory = cfg.path;
|
||||
};
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
};
|
||||
|
|
|
@ -2,16 +2,16 @@
|
|||
|
||||
buildGoModule rec {
|
||||
pname = "senpai";
|
||||
version = "unstable-2021-05-27";
|
||||
version = "unstable-2021-11-29";
|
||||
|
||||
src = fetchFromSourcehut {
|
||||
owner = "~taiite";
|
||||
repo = "senpai";
|
||||
rev = "6be718329175c6d11e359f1a366ab6ab22b101d2";
|
||||
sha256 = "sha256-hW6DHJlDBYEqK8zj5PvGKU54sbeXjx1tdqwKXPXlKHc=";
|
||||
rev = "3904c9190d94f273c0ae9937d3161b9fe4adf856";
|
||||
sha256 = "sha256-4ZhJuAxcoGjRO5xVqzlmaUvipnyiFMuJ1A3n8vlhYxU=";
|
||||
};
|
||||
|
||||
vendorSha256 = "sha256-OLi5y1hrYK6+l5WB1SX85QU4y3KjFyGaEzgbE6lnW2k=";
|
||||
vendorSha256 = "sha256-xkJh7k8GZmoZqE0HgbFp2xMJQOVDkPEXOZEl6bJZz1A=";
|
||||
|
||||
subPackages = [
|
||||
"cmd/senpai"
|
||||
|
|
|
@ -18,7 +18,6 @@
|
|||
, xcbutilwm
|
||||
, wayland
|
||||
, zlib
|
||||
# Apple frameworks
|
||||
, CoreGraphics
|
||||
, Cocoa
|
||||
, Foundation
|
||||
|
@ -27,7 +26,7 @@
|
|||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "wezterm";
|
||||
version = "20210814-124438-54e29167";
|
||||
version = "20211204-082213-a66c61ee9";
|
||||
|
||||
outputs = [ "out" "terminfo" ];
|
||||
|
||||
|
@ -36,14 +35,17 @@ rustPlatform.buildRustPackage rec {
|
|||
repo = pname;
|
||||
rev = version;
|
||||
fetchSubmodules = true;
|
||||
sha256 = "sha256-6HXTftgAs6JMzOMCY+laN74in8xfjE8yJc5xSl9PQCE=";
|
||||
sha256 = "sha256-QKtnOpAW4exDQEFSN0b04hA6TYuC+/C5nIYHCNzfuso=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
echo ${version} > .tag
|
||||
|
||||
# tests are failing with: Unable to exchange encryption keys
|
||||
rm -r wezterm-ssh/tests
|
||||
'';
|
||||
|
||||
cargoSha256 = "sha256-yjTrWoqIKoRV4oZQ0mfTGrIGmm89AaKJd16WL1Ozhnw=";
|
||||
cargoSha256 = "sha256-qSThjV6oBD6joDM0Eppo7z0SL8GHV5SaCaAwXmUIT3I=";
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
|
|
|
@ -240,9 +240,9 @@ rec {
|
|||
then "${python}/bin/python"
|
||||
else "${python.withPackages (ps: libraries)}/bin/python"
|
||||
;
|
||||
check = writeDash "python2check.sh" ''
|
||||
check = optionalString python.isPy3k (writeDash "pythoncheck.sh" ''
|
||||
exec ${pythonPackages.flake8}/bin/flake8 --show-source ${ignoreAttribute} "$1"
|
||||
'';
|
||||
'');
|
||||
} name;
|
||||
|
||||
# writePython2 takes a name an attributeset with libraries and some python2 sourcecode and
|
||||
|
|
|
@ -1,37 +0,0 @@
|
|||
From c9aaff2461daba31a25ed20c0789ffd7c3561887 Mon Sep 17 00:00:00 2001
|
||||
From: Pasquale <p3dimaria@hotmail.it>
|
||||
Date: Tue, 9 Nov 2021 23:12:50 +0100
|
||||
Subject: [PATCH] Avoid usage of npx
|
||||
|
||||
tsc is only used for checking type annotation
|
||||
that are stripped by esbuild
|
||||
|
||||
---
|
||||
src/kwinscript/CMakeLists.txt | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/src/kwinscript/CMakeLists.txt b/src/kwinscript/CMakeLists.txt
|
||||
index 6d85d5d..6f966a4 100644
|
||||
--- a/src/kwinscript/CMakeLists.txt
|
||||
+++ b/src/kwinscript/CMakeLists.txt
|
||||
@@ -29,7 +29,7 @@ add_custom_target(
|
||||
|
||||
add_custom_command(
|
||||
OUTPUT "bismuth/contents/code/index.mjs"
|
||||
- COMMAND "npx" "esbuild"
|
||||
+ COMMAND "esbuild"
|
||||
"--bundle" "${CMAKE_CURRENT_SOURCE_DIR}/index.ts"
|
||||
"--outfile=${CMAKE_CURRENT_BINARY_DIR}/bismuth/contents/code/index.mjs"
|
||||
"--format=esm"
|
||||
@@ -40,7 +40,7 @@ add_custom_command(
|
||||
|
||||
add_custom_target(
|
||||
LintViaTSC
|
||||
- COMMAND "npx" "tsc" "--noEmit" "--incremental"
|
||||
+ COMMAND "true"
|
||||
COMMENT "👮 Checking sources using TS Compiler..."
|
||||
)
|
||||
|
||||
--
|
||||
2.33.1
|
||||
|
|
@ -12,17 +12,18 @@
|
|||
|
||||
mkDerivation rec {
|
||||
pname = "bismuth";
|
||||
version = "2.1.0";
|
||||
version = "2.2.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Bismuth-Forge";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-ICpGgFvVi7tiYbMCo3JWQmbA36rdWF4NFYTWIejhxr4=";
|
||||
sha256 = "sha256-ntfLijYPaOHvQToiAxuBZ5ayHPyQyevP9l6++SL0vUw=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
./0001-Avoid-usage-of-npx.patch
|
||||
cmakeFlags = [
|
||||
"-DUSE_TSC=OFF"
|
||||
"-DUSE_NPM=OFF"
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
buildPythonPackage rec {
|
||||
pname = "casbin";
|
||||
version = "1.11.1";
|
||||
version = "1.12.0";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
|
@ -18,7 +18,7 @@ buildPythonPackage rec {
|
|||
owner = pname;
|
||||
repo = "pycasbin";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-gFGYpHd1kp4JMtoe47VbJ0uDnuGQegggbjXaw6nEMR4=";
|
||||
sha256 = "sha256-kUM4Oc4T3PSFAprUx6eY/aJpDM8RiHjPtAxMKjfHj6s=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
|
|
17
pkgs/development/python-modules/empy/default.nix
Normal file
17
pkgs/development/python-modules/empy/default.nix
Normal file
|
@ -0,0 +1,17 @@
|
|||
{ lib, fetchPypi, buildPythonPackage }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "empy";
|
||||
version = "3.3.4";
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "c6xJeFtgFHnfTqGKfHm8EwSop8NMArlHLPEgauiPAbM=";
|
||||
};
|
||||
pythonImportsCheck = [ "em" ];
|
||||
meta = with lib; {
|
||||
homepage = "http://www.alcyone.com/software/empy/";
|
||||
description = "A templating system for Python.";
|
||||
maintainers = with maintainers; [ nkalupahana ];
|
||||
license = licenses.lgpl21Only;
|
||||
};
|
||||
}
|
|
@ -51,6 +51,8 @@ buildPythonPackage rec {
|
|||
pytestCheckHook
|
||||
];
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
meta = with lib; {
|
||||
description = "Flake8 is a wrapper around pyflakes, pycodestyle and mccabe.";
|
||||
homepage = "https://github.com/pycqa/flake8";
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
|
||||
buildPythonPackage rec {
|
||||
pname = "frigidaire";
|
||||
version = "0.18.3";
|
||||
version = "0.18.4";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
|
@ -20,7 +20,7 @@ buildPythonPackage rec {
|
|||
owner = "bm1549";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "sha256-ksh7+F78JBHLMmQddyWMf3XC4Tfp4/AMlegE6qHPe2k=";
|
||||
sha256 = "sha256-U2ixBtigY15RzMNIeUK71uNOndUepK2kE/CTFwl855w=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
|
|
|
@ -46,13 +46,13 @@ with py.pkgs;
|
|||
|
||||
buildPythonApplication rec {
|
||||
pname = "checkov";
|
||||
version = "2.0.625";
|
||||
version = "2.0.626";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "bridgecrewio";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "sha256-Q2GaLHciqgsvnYAFdq6839OHcpxWM2m/H10CPmBj2vg=";
|
||||
sha256 = "sha256-fPx1TvPx16ciaDR0gYQknLCQVRfwFNo0T/P5gY419VY=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = with py.pkgs; [
|
||||
|
|
|
@ -115,43 +115,43 @@ rec {
|
|||
headers = "1idam1xirxqxqg4g7n33kdx2skk0r351m00g59a8yx9z82g06ah9";
|
||||
};
|
||||
|
||||
electron_13 = mkElectron "13.6.2" {
|
||||
armv7l-linux = "aeb037e24cbcc532b09a604c3421dd1e330afbc3c34b3fb692fcdafbe2d63097";
|
||||
aarch64-linux = "c6014ac6842d81a612e907ce3655edde495f647784ba2bafebd2ada52c065702";
|
||||
x86_64-linux = "529fb7ceb2646324e527a0d9472bbb608e89756a310a8fe1cd929e3a218b45ec";
|
||||
i686-linux = "eeaec723f16adae8b6ba9375745cc143a038905cfa0a9e9ef59ea9026fe1a11b";
|
||||
x86_64-darwin = "86f7f7270ebd36e4957f56c1ef38eecd7d1725f032810c7fef3476955914d6ff";
|
||||
aarch64-darwin = "cc0a19b6ae73f953ce3a3f8d587da8220cd00a284aa705250e81be324b9271dd";
|
||||
headers = "0a5nnj3bd8ly9shx7palaiy0q7n70x8zp1myshcg5pz1qqjjmlw9";
|
||||
electron_13 = mkElectron "13.6.3" {
|
||||
armv7l-linux = "a293a9684e16a427a9f68d101814575a4b1dd232dc3fca47552f906019a6cadc";
|
||||
aarch64-linux = "1599d259832c806b98751a68fb93112711963d259024f0e36f12f064995b3251";
|
||||
x86_64-linux = "7607422a4ba80cda4bd7fefb2fbe2f4e0b9a73db92e1e82dc01012a85b5d0d2b";
|
||||
i686-linux = "db9261c05ed57af2fcd4a84b89d299c76948b9d57ce0dba38e3240eb43935257";
|
||||
x86_64-darwin = "6bf09794d6f020bbaaf806a7758da125137b3c96646f4503eb81b9541e50e02f";
|
||||
aarch64-darwin = "374ddf0581794b31eee900828172f9218193c032c0e46bffcfac6aec95c22f1a";
|
||||
headers = "0v1n8izy83qq3ljs6191a7mzr6nnda5ib9ava1cjddkshl8pampq";
|
||||
};
|
||||
|
||||
electron_14 = mkElectron "14.2.1" {
|
||||
armv7l-linux = "d95b5055a53ffb4c502885c3b35f0b938c1be3a7b77e378587d99e6ce009e5d5";
|
||||
aarch64-linux = "52d71b92606b639881b82efd369e4cc3fd01cade476cbb25cafb22e05a8c423b";
|
||||
x86_64-linux = "820271f62c17cdfe61ed7bce4eff1e82c375d317b7e8b47f965ce9fa863e5994";
|
||||
i686-linux = "478efa82bf017f65fda6f90405d3ccc6adb073bd4b2ab2985e550b5ac6135cba";
|
||||
x86_64-darwin = "d1684580a1c6e800e488428cc15cb223e9615a456784a7cb86ec116a0afafb85";
|
||||
aarch64-darwin = "b40c8a5b4680d509e1ab799d5a0bee19cebfc5c948196b35d9a92e52ebc8fafd";
|
||||
headers = "14yaw3kml2kmi7sns8z32kv4cd8anyj5nd7rfxcg74hj2pbl9dvp";
|
||||
electron_14 = mkElectron "14.2.2" {
|
||||
armv7l-linux = "185613c0141fb57b716a0fe421aab91100586fb312a92c66785b956f54451b92";
|
||||
aarch64-linux = "8e54ef999d85454d0fa1679bece3143a72086e540eb910f4f2a8a84ea07ef003";
|
||||
x86_64-linux = "e419d1fb786f828aa3f679647e7ece889a6dcc830612909c45f4adc2f976348a";
|
||||
i686-linux = "76e77d9e45c8d94605313bba1fea87c0b76f2f95c317ef2470cc4f4d88f1b195";
|
||||
x86_64-darwin = "117377067dc5afca00db6380461c98870632cbcb97dc5dcc8aa015a9f42b969d";
|
||||
aarch64-darwin = "ac03eb8fa1781e675b5a55d83438184d86e5faa6b93d008796fa8f151a31fd14";
|
||||
headers = "0l2mwi1cn1v7pnl3l56mq0qi8cif39r5s2lkgzi2nsr71qr9f369";
|
||||
};
|
||||
|
||||
electron_15 = mkElectron "15.3.2" {
|
||||
armv7l-linux = "40d2f83a3cd29350edfff442ec1d9a5a681358ad9a7a086adf0ed8d0afa4145e";
|
||||
aarch64-linux = "c4c37b852a5576420d43c0a7d3b62be343fc0340134e9f0a7791c3c9285fe249";
|
||||
x86_64-linux = "10b85813d5280f97125437c65a002aa783f204247d501fb58786ac2a7144bb7d";
|
||||
i686-linux = "4a138dbf3d7e34915de73e0224c434666b0c9c5f335ed22e72014b20147378e6";
|
||||
x86_64-darwin = "0bd7e44d41bcdd048a2ac5dc4e1eb6807e80165ce5c06f1a220b20f10579be75";
|
||||
aarch64-darwin = "9eae07658b7d9a5eb318233a66c3933dba31661cf78b7b156d3d20ab7134f4c3";
|
||||
headers = "0r1qxgkpcn03fd28zbz86ilhsqg0gzp9clbghr5w6gy5ak8y68hz";
|
||||
electron_15 = mkElectron "15.3.3" {
|
||||
armv7l-linux = "658d72e65891191dd47f9d93b56406401c0c425d1d1941ff6f78c33660426398";
|
||||
aarch64-linux = "27fd7a94ab09d2ad2e4907e9df587ed40060065f7e867552b77da2302abdcc0f";
|
||||
x86_64-linux = "88dc16239f4821bee8674ef79c3ebab36a263638ec660b4b84ce38b9ad8d4f7a";
|
||||
i686-linux = "61dabd62dfb5a74bdd07291c20d96fc4dc895b72a65ca5b1aab15c17e20cd6d5";
|
||||
x86_64-darwin = "c556d993d8be7064c7014e877cbd8a3d057052c4bc37599a203f4c4a9fe8793f";
|
||||
aarch64-darwin = "14f7672ab31d47ef1a38f96cdaf76eef79293b3e3594be67eded90d7dcd27a8e";
|
||||
headers = "0vfv3yapjrmlg3rabl7iwq08h1mnij0mr5p8jilhfylmyjsalgbg";
|
||||
};
|
||||
|
||||
electron_16 = mkElectron "16.0.2" {
|
||||
armv7l-linux = "bba43eb1e2718f04f6d91096cf22d4c49cbab0915f48b3b22b8f94f205eda2f0";
|
||||
aarch64-linux = "3a2ad9c508bfb8e1b2635a3af0a7495e1121bc7aea64a9b771322a60bb82e265";
|
||||
x86_64-linux = "2f96a5b773b790d968a6b2c1142f8d231587b775be113e7ee90d9a89bec8cd70";
|
||||
i686-linux = "4fd01951b3f57b69731f85d6eae6962257c3a70c37d74751a098bc00ea43085a";
|
||||
x86_64-darwin = "a3b9fd83dea4cfa959ddd72be4cbcb8d0503f4ab2741705561b62de8b5218895";
|
||||
aarch64-darwin = "3894d141b060d37f1248556525e96a9fc1d4afc237b740f5093bdcd5731972d1";
|
||||
headers = "0h1gzrd6rdd217q0im0g1hr3b037dmi4v6wk30kzb12597ww59n1";
|
||||
electron_16 = mkElectron "16.0.4" {
|
||||
armv7l-linux = "f077c8a2ee0ea2a02fc2a45902e2b13fcf0ba80a9859ab8967302f5f0bdcc406";
|
||||
aarch64-linux = "ac47ece501e8844e03d2abab99afc27952c194f11a039107bb7620bee683f95d";
|
||||
x86_64-linux = "47fada0883bd62a5f47831abf70f5d41f44559de576e44accedf8489e8c5dd6b";
|
||||
i686-linux = "825cda3a9c89c5f44990f1e68f25d7871d04277468ccbc9cc29a1472b81d5fa2";
|
||||
x86_64-darwin = "0a4621c1137ce158cf396af30b732df72fa61a4ea04bc55d3d9f9915267fe8e9";
|
||||
aarch64-darwin = "0c047fd840bc7d77d36d3b0c4a6b6b8331ce0786527fa33455a7b3ee47eb0020";
|
||||
headers = "11fni4ax71c1p6yhdl402r2884anyzwd1iw8dypwvrs7gcd913k2";
|
||||
};
|
||||
}
|
||||
|
|
|
@ -6,11 +6,11 @@
|
|||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "cpuid";
|
||||
version = "20211114";
|
||||
version = "20211129";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://etallen.com/cpuid/${pname}-${version}.src.tar.gz";
|
||||
sha256 = "1dz10d958hz7qbh77hxf2k6sc7y9nkvlmr2469hv6gwgqs6dq1vi";
|
||||
sha256 = "sha256-Iwdyu4jERzLmikLS7/Q7z/RtiTv06m4EFR1MtujIji8=";
|
||||
};
|
||||
|
||||
# For pod2man during the build process.
|
||||
|
@ -47,10 +47,9 @@ stdenv.mkDerivation rec {
|
|||
Intel, AMD, VIA, Hygon, and Zhaoxin CPUs, as well as older Transmeta,
|
||||
Cyrix, UMC, NexGen, Rise, and SiS CPUs.
|
||||
'';
|
||||
platforms = [ "i686-linux" "x86_64-linux" ];
|
||||
license = licenses.gpl2Plus;
|
||||
homepage = "http://etallen.com/cpuid.html";
|
||||
license = licenses.gpl2Plus;
|
||||
maintainers = with maintainers; [ blitz ];
|
||||
platforms = [ "i686-linux" "x86_64-linux" ];
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ lib, stdenv, fetchFromGitHub, fetchpatch, substituteAll, libtool, pkg-config, gettext, gnused
|
||||
{ lib, stdenv, fetchFromGitHub, substituteAll, libtool, pkg-config, gettext, gnused
|
||||
, gtk-doc, acl, systemd, glib, libatasmart, polkit, coreutils, bash, which
|
||||
, expat, libxslt, docbook_xsl, util-linux, mdadm, libgudev, libblockdev, parted
|
||||
, gobject-introspection, docbook_xml_dtd_412, docbook_xml_dtd_43, autoconf, automake
|
||||
|
@ -7,13 +7,13 @@
|
|||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "udisks";
|
||||
version = "2.8.4";
|
||||
version = "2.9.4";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "storaged-project";
|
||||
repo = "udisks";
|
||||
rev = "${pname}-${version}";
|
||||
sha256 = "01wx2x8xyal595dhdih7rva2bz7gqzgwdp56gi0ikjdzayx17wcf";
|
||||
sha256 = "sha256-MYQztzIyp5kh9t1bCIlj08/gaOmZfuu/ZOwo3F+rZiw=";
|
||||
};
|
||||
|
||||
outputs = [ "out" "man" "dev" ] ++ lib.optional (stdenv.hostPlatform == stdenv.buildPlatform) "devdoc";
|
||||
|
@ -37,17 +37,11 @@ stdenv.mkDerivation rec {
|
|||
xfsprogs ntfs3g parted util-linux
|
||||
];
|
||||
})
|
||||
|
||||
# Fix tests: https://github.com/storaged-project/udisks/issues/724
|
||||
(fetchpatch {
|
||||
url = "https://github.com/storaged-project/udisks/commit/60a0c1c967821d317046d9494e45b9a8e4e7a1c1.patch";
|
||||
sha256 = "0rlgqsxn7rb074x6ivm0ya5lywc4llifj5br0zr31mwwckv7hsdm";
|
||||
})
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
autoconf automake pkg-config libtool gettext which gobject-introspection
|
||||
gtk-doc libxslt docbook_xml_dtd_412 docbook_xml_dtd_43 docbook_xsl
|
||||
gtk-doc libxslt docbook_xml_dtd_412 docbook_xml_dtd_43 docbook_xsl util-linux
|
||||
];
|
||||
|
||||
postPatch = lib.optionalString stdenv.hostPlatform.isMusl ''
|
||||
|
|
|
@ -1,16 +1,20 @@
|
|||
diff --git a/Makefile.am b/Makefile.am
|
||||
index 56922b79..697f8c6e 100644
|
||||
--- a/Makefile.am
|
||||
+++ b/Makefile.am
|
||||
@@ -1,6 +1,6 @@
|
||||
## Process this file with automake to produce Makefile.in
|
||||
|
||||
-SHELL = /bin/bash
|
||||
-SHELL = @BASH@
|
||||
+SHELL = @bash@
|
||||
.SHELLFLAGS = -o pipefail -c
|
||||
|
||||
PYTHON ?= python3
|
||||
diff --git a/data/80-udisks2.rules b/data/80-udisks2.rules
|
||||
index 39bfa28b..ee1ca90a 100644
|
||||
--- a/data/80-udisks2.rules
|
||||
+++ b/data/80-udisks2.rules
|
||||
@@ -17,9 +17,9 @@
|
||||
@@ -17,9 +17,9 @@ ENV{DM_UDEV_DISABLE_OTHER_RULES_FLAG}=="?*", GOTO="udisks_probe_end"
|
||||
#
|
||||
# TODO: file bug against mdadm(8) to have --export-prefix option that can be used with e.g. UDISKS_MD_MEMBER
|
||||
#
|
||||
|
@ -22,17 +26,37 @@
|
|||
|
||||
LABEL="udisks_probe_end"
|
||||
|
||||
diff --git a/modules/zram/data/udisks2-zram-setup@.service.in b/modules/zram/data/udisks2-zram-setup@.service.in
|
||||
index ac868e84..03fdd887 100644
|
||||
--- a/modules/zram/data/udisks2-zram-setup@.service.in
|
||||
+++ b/modules/zram/data/udisks2-zram-setup@.service.in
|
||||
@@ -8,7 +8,7 @@ Requires=dev-%i.device
|
||||
Type=oneshot
|
||||
RemainAfterExit=no
|
||||
EnvironmentFile=-@zramconfdir@/%i
|
||||
-ExecStart=-/bin/sh -c 'if [ -n "$ZRAM_NUM_STR" ]; then echo "$ZRAM_NUM_STR" > /sys/class/block/%i/max_comp_streams; fi'
|
||||
-ExecStart=-/bin/sh -c 'if [ -n "$ZRAM_DEV_SIZE" ]; then echo "$ZRAM_DEV_SIZE" > /sys/class/block/%i/disksize; fi'
|
||||
-ExecStart=-/bin/sh -c 'if [ "$SWAP" = "y" ]; then mkswap /dev/%i && swapon /dev/%i; fi'
|
||||
-# ExecStop=-/bin/sh -c 'echo 1 > /sys/class/block/%i/reset'
|
||||
+ExecStart=-@sh@ -c 'if [ -n "$ZRAM_NUM_STR" ]; then echo "$ZRAM_NUM_STR" > /sys/class/block/%i/max_comp_streams; fi'
|
||||
+ExecStart=-@sh@ -c 'if [ -n "$ZRAM_DEV_SIZE" ]; then echo "$ZRAM_DEV_SIZE" > /sys/class/block/%i/disksize; fi'
|
||||
+ExecStart=-@sh@ -c 'if [ "$SWAP" = "y" ]; then @mkswap@ /dev/%i && @swapon@ /dev/%i; fi'
|
||||
+# ExecStop=-@sh@ -c 'echo 1 > /sys/class/block/%i/reset'
|
||||
diff --git a/modules/zram/udiskslinuxmanagerzram.c b/modules/zram/udiskslinuxmanagerzram.c
|
||||
index f647f653..df81e910 100644
|
||||
--- a/modules/zram/udiskslinuxmanagerzram.c
|
||||
+++ b/modules/zram/udiskslinuxmanagerzram.c
|
||||
@@ -250,7 +250,7 @@
|
||||
@@ -243,7 +243,7 @@ create_conf_files (guint64 num_devices,
|
||||
|
||||
g_snprintf (tmp, 255, "zram%" G_GUINT64_FORMAT, i);
|
||||
filename = g_build_filename (PACKAGE_ZRAMCONF_DIR, tmp, NULL);
|
||||
- contents = g_strdup_printf ("#!/bin/bash\n\n"
|
||||
+ contents = g_strdup_printf ("#!@bash@\n\n"
|
||||
- contents = g_strdup_printf ("#!/bin/bash\n"
|
||||
+ contents = g_strdup_printf ("#!@bash@\n"
|
||||
"# UDisks2 managed ZRAM configuration\n\n"
|
||||
"ZRAM_NUM_STR=%" G_GUINT64_FORMAT "\n"
|
||||
"ZRAM_DEV_SIZE=%" G_GUINT64_FORMAT "\n"
|
||||
"SWAP=n\n",
|
||||
diff --git a/src/tests/install-udisks/runtest.sh b/src/tests/install-udisks/runtest.sh
|
||||
index e7df4ed2..ab4356d9 100644
|
||||
--- a/src/tests/install-udisks/runtest.sh
|
||||
+++ b/src/tests/install-udisks/runtest.sh
|
||||
@@ -1,4 +1,4 @@
|
||||
|
@ -41,18 +65,11 @@
|
|||
# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#
|
||||
diff --git a/src/tests/integration-test b/src/tests/integration-test
|
||||
index 4499a6a9..8b711f95 100755
|
||||
--- a/src/tests/integration-test
|
||||
+++ b/src/tests/integration-test
|
||||
@@ -414,7 +414,7 @@
|
||||
f.write('KERNEL=="sr*", ENV{DISK_EJECT_REQUEST}!="?*", '
|
||||
'ATTRS{model}=="scsi_debug*", '
|
||||
'ENV{ID_CDROM_MEDIA}=="?*", '
|
||||
- 'IMPORT{program}="/sbin/blkid -o udev -p -u noraid $tempnode"\n')
|
||||
+ 'IMPORT{program}="@blkid@ -o udev -p -u noraid $tempnode"\n')
|
||||
# reload udev
|
||||
subprocess.call('sync; pkill --signal HUP udevd || '
|
||||
'pkill --signal HUP systemd-udevd',
|
||||
@@ -1079,7 +1079,7 @@
|
||||
@@ -1142,7 +1142,7 @@ class FS(UDisksTestCase):
|
||||
self.assertFalse(os.access(f, os.X_OK))
|
||||
|
||||
f = os.path.join(mount_point, 'simple.exe')
|
||||
|
@ -61,7 +78,7 @@
|
|||
self.assertTrue(os.access(f, os.R_OK))
|
||||
self.assertTrue(os.access(f, os.W_OK))
|
||||
self.assertTrue(os.access(f, os.X_OK))
|
||||
@@ -1092,7 +1092,7 @@
|
||||
@@ -1155,7 +1155,7 @@ class FS(UDisksTestCase):
|
||||
self.assertFalse(os.access(f, os.X_OK))
|
||||
|
||||
f = os.path.join(mount_point, 'subdir', 'subdir.exe')
|
||||
|
@ -70,6 +87,8 @@
|
|||
self.assertTrue(os.access(f, os.R_OK))
|
||||
self.assertTrue(os.access(f, os.W_OK))
|
||||
self.assertTrue(os.access(f, os.X_OK))
|
||||
diff --git a/src/tests/storadectl/runtest.sh b/src/tests/storadectl/runtest.sh
|
||||
index f03885f9..baca6a93 100644
|
||||
--- a/src/tests/storadectl/runtest.sh
|
||||
+++ b/src/tests/storadectl/runtest.sh
|
||||
@@ -1,4 +1,4 @@
|
||||
|
@ -78,9 +97,11 @@
|
|||
# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#
|
||||
diff --git a/src/tests/test.c b/src/tests/test.c
|
||||
index 3ddbdf2c..a87f960a 100644
|
||||
--- a/src/tests/test.c
|
||||
+++ b/src/tests/test.c
|
||||
@@ -71,7 +71,7 @@
|
||||
@@ -71,7 +71,7 @@ test_spawned_job_successful (void)
|
||||
{
|
||||
UDisksSpawnedJob *job;
|
||||
|
||||
|
@ -89,7 +110,7 @@
|
|||
udisks_spawned_job_start (job);
|
||||
_g_assert_signal_received (job, "completed", G_CALLBACK (on_completed_expect_success), NULL);
|
||||
g_object_unref (job);
|
||||
@@ -84,10 +84,10 @@
|
||||
@@ -84,10 +84,10 @@ test_spawned_job_failure (void)
|
||||
{
|
||||
UDisksSpawnedJob *job;
|
||||
|
||||
|
@ -102,7 +123,7 @@
|
|||
g_object_unref (job);
|
||||
}
|
||||
|
||||
@@ -119,7 +119,7 @@
|
||||
@@ -119,7 +119,7 @@ test_spawned_job_cancelled_at_start (void)
|
||||
|
||||
cancellable = g_cancellable_new ();
|
||||
g_cancellable_cancel (cancellable);
|
||||
|
@ -111,7 +132,7 @@
|
|||
udisks_spawned_job_start (job);
|
||||
_g_assert_signal_received (job, "completed", G_CALLBACK (on_completed_expect_failure),
|
||||
(gpointer) "Operation was cancelled (g-io-error-quark, 19)");
|
||||
@@ -145,7 +145,7 @@
|
||||
@@ -144,7 +144,7 @@ test_spawned_job_cancelled_midway (void)
|
||||
GCancellable *cancellable;
|
||||
|
||||
cancellable = g_cancellable_new ();
|
||||
|
@ -119,8 +140,8 @@
|
|||
+ job = udisks_spawned_job_new ("@sleep@ 0.5", NULL, getuid (), geteuid (), NULL, cancellable);
|
||||
udisks_spawned_job_start (job);
|
||||
g_timeout_add (10, on_timeout, cancellable); /* 10 msec */
|
||||
g_main_loop_run (loop);
|
||||
@@ -199,7 +199,7 @@
|
||||
_g_assert_signal_received (job, "completed", G_CALLBACK (on_completed_expect_failure),
|
||||
@@ -197,7 +197,7 @@ test_spawned_job_premature_termination (void)
|
||||
{
|
||||
UDisksSpawnedJob *job;
|
||||
|
||||
|
@ -129,3 +150,6 @@
|
|||
udisks_spawned_job_start (job);
|
||||
g_object_unref (job);
|
||||
}
|
||||
--
|
||||
2.33.1
|
||||
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
diff -ruN udisks-2.1.0.orig/src/main.c udisks-2.1.0/src/main.c
|
||||
--- udisks-2.1.0.orig/src/main.c 2013-04-02 10:43:41.629332135 +0000
|
||||
+++ udisks-2.1.0/src/main.c 2013-04-02 11:04:55.635342823 +0000
|
||||
@@ -140,8 +140,7 @@
|
||||
}
|
||||
diff --git a/src/main.c b/src/main.c
|
||||
index b4dbf9e0..3171fa34 100644
|
||||
--- a/src/main.c
|
||||
+++ b/src/main.c
|
||||
@@ -144,8 +144,7 @@ main (int argc,
|
||||
g_setenv("G_MESSAGES_DEBUG", "udisks", FALSE);
|
||||
}
|
||||
|
||||
- if (g_getenv ("PATH") == NULL)
|
||||
|
@ -11,3 +12,6 @@ diff -ruN udisks-2.1.0.orig/src/main.c udisks-2.1.0/src/main.c
|
|||
|
||||
udisks_notice ("udisks daemon version %s starting", PACKAGE_VERSION);
|
||||
|
||||
--
|
||||
2.33.1
|
||||
|
||||
|
|
|
@ -2,7 +2,8 @@
|
|||
, python3Packages
|
||||
, fetchFromGitHub
|
||||
, systemd
|
||||
, xrandr }:
|
||||
, xrandr
|
||||
, installShellFiles }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "autorandr";
|
||||
|
@ -10,6 +11,8 @@ stdenv.mkDerivation rec {
|
|||
|
||||
buildInputs = [ python3Packages.python ];
|
||||
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
|
||||
# no wrapper, as autorandr --batch does os.environ.clear()
|
||||
buildPhase = ''
|
||||
substituteInPlace autorandr.py \
|
||||
|
@ -23,7 +26,12 @@ stdenv.mkDerivation rec {
|
|||
runHook preInstall
|
||||
make install TARGETS='autorandr' PREFIX=$out
|
||||
|
||||
make install TARGETS='bash_completion' DESTDIR=$out/share/bash-completion/completions
|
||||
# zsh completions exist but currently have no make target, use
|
||||
# installShellCompletions for both
|
||||
# see https://github.com/phillipberndt/autorandr/issues/197
|
||||
installShellCompletion --cmd autorandr \
|
||||
--bash contrib/bash_completion/autorandr \
|
||||
--zsh contrib/zsh_completion/_autorandr
|
||||
|
||||
make install TARGETS='autostart_config' PREFIX=$out DESTDIR=$out
|
||||
|
||||
|
|
|
@ -2475,6 +2475,8 @@ in {
|
|||
|
||||
emoji = callPackage ../development/python-modules/emoji { };
|
||||
|
||||
empy = callPackage ../development/python-modules/empy { };
|
||||
|
||||
emulated-roku = callPackage ../development/python-modules/emulated-roku { };
|
||||
|
||||
enaml = callPackage ../development/python-modules/enaml { };
|
||||
|
|
Loading…
Reference in a new issue