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

Merge pull request #54 from tomberek/idiom_cases

initial idiom cases
This commit is contained in:
Kevin Amado 2022-02-09 23:40:54 -05:00 committed by GitHub
commit bbd842629f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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";
};
}
]