| 7 May 2023 |
raitobezarius | I was like: "I could use nix-init as an API" and I remembered the main.rs | 22:50:00 |
raitobezarius | is the ragequit the only solution here | 22:50:26 |
raitobezarius | okay I will hack flags I guess | 22:50:45 |
figsoda | I mean you can just go through the whole process again | 22:51:40 |
raitobezarius | yeah but I will add flags to nix-init | 22:51:48 |
raitobezarius | so I can just use up for real | 22:51:51 |
raitobezarius | or can do a bash for | 22:51:56 |
raitobezarius | I only need builder, source_root, tag | 22:52:53 |
figsoda | I can see something like recipes once the code generation is refactored | 22:53:43 |
raitobezarius | ok hacked enough to have a workable thing | 23:16:01 |
raitobezarius | it does not seem like it likes yes "" | cargo run -- | 23:21:31 |
raitobezarius | it's a shame, the prompter seems incompatible with that | 23:24:08 |
figsoda | I think it might be read_line_with_initial that's causing this | 23:24:49 |
figsoda | pipe makes it fail to put an initial, and it hangs due to NonEmpty | 23:25:15 |
raitobezarius | I don't know enough about readline, is this fixable you think? | 23:25:32 |
raitobezarius | otherwise I'm hacking a dontprompt | 23:25:40 |
figsoda | not sure | 23:26:19 |
raitobezarius | ok dont_prompt hacked | 23:33:46 |
raitobezarius | wait buildPythonPackage format does not use the nixpkgs-style :D | 23:41:22 |
figsoda | what's nixpkgs-style | 23:41:32 |
raitobezarius | { lib
, buildPythonPackage
, fetchPypi
, pythonAtLeast
, unittestCheckHook
}:
if pythonAtLeast "3.4" then null else buildPythonPackage rec {
pname = "enum34";
version = "1.1.10";
src = fetchPypi {
inherit pname version;
sha256 = "cce6a7477ed816bd2542d03d53db9f0db935dd013b70f336a95c73979289f248";
};
nativeCheckInputs = [ unittestCheckHook ];
meta = with lib; {
homepage = "https://pypi.python.org/pypi/enum34";
description = "Python 3.4 Enum backported to 3.3, 3.2, 3.1, 2.7, 2.6, 2.5, and 2.4";
license = licenses.bsd0;
};
}
| 23:41:41 |
raitobezarius | for example | 23:41:42 |
raitobezarius | you don't have python3 but all your deps | 23:41:53 |
raitobezarius | or am I doing something wrong | 23:42:28 |
figsoda | what did you get | 23:42:34 |
figsoda | pythonAtLeast is not implemented in nix-init yet | 23:43:00 |
figsoda | https://github.com/nix-community/nix-init/issues/64 | 23:43:01 |
raitobezarius | I'm double checking | 23:43:10 |
raitobezarius | my bad | 23:43:44 |
raitobezarius | everything is good | 23:45:53 |