mirror of
https://github.com/RGBCube/alejandra
synced 2025-08-01 04:57:44 +00:00
initial idiom cases
This commit is contained in:
parent
1cc586b32d
commit
55ab6291a8
2 changed files with 44 additions and 0 deletions
15
tests/cases/idioms/in
Normal file
15
tests/cases/idioms/in
Normal 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
29
tests/cases/idioms/out
Normal 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";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
]
|
Loading…
Add table
Add a link
Reference in a new issue