!SgYlXivkogarTVcnZO:nixos.org

Nix Flakes

611 Members
121 Servers

Load older messages


SenderMessageTime
21 Jun 2024
@qu4pk4:matrix.orgqu4pk4

I have read various threads on command line arguments for Flake builds, runs - is it still the case, that one cannot do like:

$ nix run -dOpenSSLVerion=3.1.5
$ nix run -dOpenSSLVerion=3.2.2

And dynamically different package/app would be built?

14:45:56
@qu4pk4:matrix.orgqu4pk4 It might not work also because the version is then put into fetchUrl, which also needs the hash, but maybe that could be worked around as well somehow. 14:46:30
@antifuchs:asf.computer@antifuchs:asf.computer left the room.14:56:29
@mtxyz:the-apothecary.club@mtxyz:the-apothecary.club left the room.22:51:40
22 Jun 2024
@ramtechbytes:matrix.orgRam joined the room.02:07:17
@ramtechbytes:matrix.orgRamWould anyone mind helping me with a flake I am trying to make?02:07:56
@tomberek:matrix.orgtomberekSure... what's up?02:18:28
@ramtechbytes:matrix.orgRamI am trying to make a flake for a simple python flask app02:19:17
@ramtechbytes:matrix.orgRam{ description = "LIMS Dashboard Flake"; inputs = { nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; flake-utils.url = "github:numtide/flake-utils"; }; outputs = { nixpkgs, flake-utils, ... }: flake-utils.lib.eachSystem [ "x86_64-linux" "x86_64-darwin" "aarch64-linux" "aarch64-darwin" ] (system: let pkgs = nixpkgs.legacyPackages.${system}; in { devShell.${system} = pkgs.mkShell { buildInputs = with pkgs; [ python3Packages.flask ]; }; } ); } 02:19:36
@ramtechbytes:matrix.orgRamI keep getting the following error: error: flake 'path:/home/ram/Flakes/Flask' does not provide attribute 'apps.x86_64-linux.default', 'defaultApp.x86_64-linux', 'packages.x86_64-linux.default' or 'defaultPackage.x86_64-linux' 02:20:31
@tomberek:matrix.orgtomberekYour flake defined a devShell for various systems, but no package.02:43:42
@tomberek:matrix.orgtomberekSo if you tried to "nix build" it would fail. A "nix develop" would work, because that command will default to trying the devShell.SYSTEM.default02:44:37
@ramtechbytes:matrix.orgRamthats the thing it gives me the same error no matter what I run02:46:40
@ramtechbytes:matrix.orgRamerror: flake 'path:/home/ram/Flakes/Flask' does not provide attribute 'devShells.x86_64-linux.default', 'devShell.x86_64-linux', 'packages.x86_64-linux.default' or 'defaultPackage.x86_64-linux' Did you mean devShells? 02:47:25
@tomberek:matrix.orgtomberekdevShell vs devShells03:42:10
@tomberek:matrix.orgtomberekAlso, with flake-utils you don't need to have the system in there.... in fact, you don't really need flake-utils there.03:44:17
@tomberek:matrix.orgtomberekA mapAttrs will do almost the same thing: https://github.com/tomberek/audiveris/blob/master/flake.nix#L803:44:48
@parasew:matrix.orgparasew | CDC changed their display name from parasew | CDC ☎️ 7549 to parasew | CDC.15:07:33
@bumperboat:matrix.org@bumperboat:matrix.org changed their display name from bumperboat (UTC+1) to bumperboat (UTC+2).16:48:08
24 Jun 2024
@hive:the-apothecary.clubLi-ion changed their profile picture.23:17:17
25 Jun 2024
@axiomss:matrix.org@axiomss:matrix.org joined the room.22:00:52
26 Jun 2024
@y:staying.off.contact@y:staying.off.contact joined the room.08:48:48
@ereslibre:matrix.org@ereslibre:matrix.org changed their profile picture.10:24:08
27 Jun 2024
@kjeremy:matrix.orgkjeremy

is there a way to get a description field into packages? for instance I want nix flake show to show something like

└───packages
    └───x86_64-linux
        ├───"cat27x/burn": "Use this package to burn a disk image"

Instead of package: 'burn.sh'

17:28:03
@kjeremy:matrix.orgkjeremy I thought that settings meta.description would change the text but it doesn't 17:36:21
@kjeremy:matrix.orgkjeremy * I thought that setting meta.description would change the text but it doesn't 17:36:29
@y:staying.off.contact@y:staying.off.contact left the room.17:39:26
@tired:fairydust.space@tired:fairydust.space left the room.18:49:01
@kjeremy:matrix.orgkjeremy
In reply to @kjeremy:matrix.org

is there a way to get a description field into packages? for instance I want nix flake show to show something like

└───packages
    └───x86_64-linux
        ├───"cat27x/burn": "Use this package to burn a disk image"

Instead of package: 'burn.sh'

I made a PR
19:51:05
28 Jun 2024
@axiomss:matrix.org@axiomss:matrix.org left the room.04:13:04

Show newer messages


Back to Room ListRoom Version: 6