1
Fork 0
mirror of https://github.com/RGBCube/alejandra synced 2025-07-31 12:37:45 +00:00

initial idiom cases

This commit is contained in:
Tom Bereknyei 2022-02-09 23:34:56 -05:00
parent 1cc586b32d
commit 55ab6291a8
2 changed files with 44 additions and 0 deletions

15
tests/cases/idioms/in Normal file
View file

@ -0,0 +1,15 @@
[
{ meta = with lib; { a=1; b=2; c=3; };}
{stdenv, lib, fetchFrom, ... }:
stdenv.mkDerivation rec {
pname = "test";
version = "0.0";
src = fetchFrom {
url = "example/${version}";
};
meta = with lib; {
maintainers = with maintainers; [ someone ];
description = "something";
};
}
]

29
tests/cases/idioms/out Normal file
View file

@ -0,0 +1,29 @@
[
{
meta =
with lib;
{
a = 1;
b = 2;
c = 3;
};
}
{ stdenv
, lib
, fetchFrom
, ...
}:
stdenv.mkDerivation rec {
pname = "test";
version = "0.0";
src = fetchFrom {
url = "example/${version}";
};
meta =
with lib;
{
maintainers = with maintainers; [ someone ];
description = "something";
};
}
]