Merge release-21.05 into staging-next-21.05

This commit is contained in:
github-actions[bot] 2021-08-04 00:02:37 +00:00 committed by GitHub
commit c65cc9d28b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 22 additions and 9 deletions

View File

@ -132,6 +132,16 @@ runTests {
expected = [ 1 1 0 ]; expected = [ 1 1 0 ];
}; };
testFunctionArgsFunctor = {
expr = functionArgs { __functor = self: { a, b }: null; };
expected = { a = false; b = false; };
};
testFunctionArgsSetFunctionArgs = {
expr = functionArgs (setFunctionArgs (args: args.x) { x = false; });
expected = { x = false; };
};
# STRINGS # STRINGS
testConcatMapStrings = { testConcatMapStrings = {

View File

@ -334,7 +334,10 @@ rec {
has the same return type and semantics as builtins.functionArgs. has the same return type and semantics as builtins.functionArgs.
setFunctionArgs : (a b) Map String Bool. setFunctionArgs : (a b) Map String Bool.
*/ */
functionArgs = f: f.__functionArgs or (builtins.functionArgs f); functionArgs = f:
if f ? __functor
then f.__functionArgs or (lib.functionArgs (f.__functor f))
else builtins.functionArgs f;
/* Check whether something is a function or something /* Check whether something is a function or something
annotated with function args. annotated with function args.

View File

@ -3,13 +3,13 @@
buildGoModule rec { buildGoModule rec {
pname = "restic"; pname = "restic";
version = "0.12.0"; version = "0.12.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "restic"; owner = "restic";
repo = "restic"; repo = "restic";
rev = "v${version}"; rev = "v${version}";
sha256 = "07gxf56g45gj2arvdnrr9656i9ykhy1y6k6zdlni1sa3aa2x2bbf"; sha256 = "19lzccipbpxdkay60zdqfq8dgah0sbxzjcfcx285c28js2zpp85m";
}; };
patches = [ patches = [
@ -17,7 +17,7 @@ buildGoModule rec {
./0001-Skip-testing-restore-with-permission-failure.patch ./0001-Skip-testing-restore-with-permission-failure.patch
]; ];
vendorSha256 = "14z22lmdd681rn61alpqbn3i9fn0kcc74321vjvhz2ix2mch3c1z"; vendorSha256 = "0sdswihiy4r3lw9a87xj2qm3nf28cw56yfm56mva6b8lr3vk93l6";
subPackages = [ "cmd/restic" ]; subPackages = [ "cmd/restic" ];

View File

@ -2,13 +2,13 @@
mkDerivation rec { mkDerivation rec {
pname = "flameshot"; pname = "flameshot";
version = "0.9.0"; version = "0.10.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "flameshot-org"; owner = "flameshot-org";
repo = "flameshot"; repo = "flameshot";
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-E5J61k1tVpbwlzYHbCY1rf9+GODcJRRAQwb0jR4s7BU="; sha256 = "1ncknjayl6am740f49g0lc28z1zsifbicxz1j1kwps3ksj15nl7a";
}; };
nativeBuildInputs = [ cmake qttools qtsvg ]; nativeBuildInputs = [ cmake qttools qtsvg ];
@ -17,8 +17,8 @@ mkDerivation rec {
meta = with lib; { meta = with lib; {
description = "Powerful yet simple to use screenshot software"; description = "Powerful yet simple to use screenshot software";
homepage = "https://github.com/flameshot-org/flameshot"; homepage = "https://github.com/flameshot-org/flameshot";
maintainers = [ maintainers.scode ]; maintainers = with maintainers; [ scode ];
license = lib.licenses.gpl3Plus; license = licenses.gpl3Plus;
platforms = lib.platforms.linux; platforms = platforms.linux;
}; };
} }