Can Nix language be used for simple shell scripting?

I am intrigued by the Nix language, because it is functional and because file paths are first class data types. Is Nix language suitable for simple shell scripting, such as calling typical command-line utils and copying/moving files? If yes, is there a way to install only the Nix language on MacOS? What I mean by… Read More Can Nix language be used for simple shell scripting?

I don't understand why I have " cannot evaluate a function that has an argument without a value ('fetchurl') " when I try to build a package

I try to build a nix package a.nix : { lib , stdenv , fetchurl , testVersion , hello }: stdenv.mkDerivation { name = "libfoo-1.2.3"; src = fetchurl { url = "http://example.org/libfoo-1.2.3.tar.bz2"; sha256 = "0x2g1jqygyr5wiwg4ma1nd7w4ydpy82z9gkcv8vh2v8dn3y58v5m"; }; } then I execute this bash command nix-build a.nix cannot evaluate a function that has an argument without a… Read More I don't understand why I have " cannot evaluate a function that has an argument without a value ('fetchurl') " when I try to build a package

Background image css not scaling down properly

I’m trying to put an image as a background of my project insde the body component, but when I reduce the screen width the image doesn’t overflow correctly. This is what I have now: the css is: body { background-image: url("https://phoenix-engineering.be/wp-content/uploads/2019/07/shutterstock_1113165392.png"); background-size: cover; overflow: hidden; background-position: unset; background-repeat: no-repeat; text-align: center; font-family: "Roboto", sans-serif; font-family:… Read More Background image css not scaling down properly

PyInstaller –add-data from script

I’m trying to create an executable file out of my python project. I’m using the function ‘make_executable’ to build an executable file. Running the command to add data raises an error like: pyinstaller: error: unrecognized arguments: –add-data C:\Users<>… –add-data: C:\Users<>… def make_executable(main_script: str, files_to_add: List[str], target_location: str = None, name: str = ‘app’, single_file: bool… Read More PyInstaller –add-data from script

dictionary inside dictionary sorting

this is the dict i need to sort it by "error" value {‘mdouglas’: {‘INFO’: 2, ‘ERROR’: 3}, ‘noel’: {‘INFO’: 6, ‘ERROR’: 3}, ‘breee’: {‘INFO’: 1, ‘ERROR’: 5}, ‘ac’: {‘INFO’: 2, ‘ERROR’: 2}, ‘blossom’: {‘INFO’: 2, ‘ERROR’: 6}, ‘rr.robinson’: {‘INFO’: 2, ‘ERROR’: 1}, ‘mcintosh’: {‘INFO’: 4, ‘ERROR’: 3}, ‘jackowens’: {‘INFO’: 2, ‘ERROR’: 4}, ‘oren’: {‘INFO’: 2,… Read More dictionary inside dictionary sorting