poetry2nix: 1.2.0 -> 1.2.1
This commit is contained in:
parent
7750fd5555
commit
1282b60452
|
@ -30,7 +30,25 @@ let
|
||||||
in
|
in
|
||||||
(builtins.foldl' combine initial tokens).state;
|
(builtins.foldl' combine initial tokens).state;
|
||||||
|
|
||||||
readTOML = path: builtins.fromTOML (builtins.readFile path);
|
fromTOML = toml: if builtins.hasAttr "fromTOML" builtins then builtins.fromTOML toml else
|
||||||
|
builtins.fromJSON (
|
||||||
|
builtins.readFile (
|
||||||
|
pkgs.runCommand "from-toml"
|
||||||
|
{
|
||||||
|
inherit toml;
|
||||||
|
allowSubstitutes = false;
|
||||||
|
preferLocalBuild = true;
|
||||||
|
}
|
||||||
|
''
|
||||||
|
${pkgs.remarshal}/bin/remarshal \
|
||||||
|
-if toml \
|
||||||
|
-i <(echo "$toml") \
|
||||||
|
-of json \
|
||||||
|
-o $out
|
||||||
|
''
|
||||||
|
)
|
||||||
|
);
|
||||||
|
readTOML = path: fromTOML (builtins.readFile path);
|
||||||
|
|
||||||
#
|
#
|
||||||
# Returns the appropriate manylinux dependencies and string representation for the file specified
|
# Returns the appropriate manylinux dependencies and string representation for the file specified
|
||||||
|
|
Loading…
Reference in a new issue