!jtzdZrQSXtEpeGtzAn:nixos.org

Testing with Nix

97 Members
24 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
26 Mar 2024
@brunzefb:matrix.orgbrunzefb Thanks -- got it to work with
nix-shell -p awscli2 -I nixpkgs=https://github.com/NixOS/nixpkgs/archive/976fa3369d722e76f37c77493d99829540d43845.tar.gz
02:08:22
@brunzefb:matrix.orgbrunzefbfor version 2.13.7. I would have thought the reference would have been just awscli2@2.13.702:09:35
@brunzefb:matrix.orgbrunzefbstill not 100% sure how to use this in a .nix file02:17:49
@vengmark2:matrix.orgl0b0
In reply to @brunzefb:matrix.org
for version 2.13.7. I would have thought the reference would have been just awscli2@2.13.7
Nix uses cryptographic hashes as immutable, safe references to build outputs like packages. For example, there could be several nixpkgs changes applied to awscli2 version 2.13.7. By using hashes these can be referenced uniquely and unambiguously.
02:18:51
@brunzefb:matrix.orgbrunzefbmakes sense.02:19:10
@brunzefb:matrix.orgbrunzefb
    pkgs = import (builtins.fetchTarball {
        url = "https://github.com/NixOS/nixpkgs/archive/976fa3369d722e76f37c77493d99829540d43845.tar.gz";
    }) {};

    myPkg = pkgs.awscli2;```
in
02:19:56
@brunzefb:matrix.orgbrunzefbis probably the way, I will experiment.02:20:13
@vengmark2:matrix.orgl0b0
In reply to @brunzefb:matrix.org
    pkgs = import (builtins.fetchTarball {
        url = "https://github.com/NixOS/nixpkgs/archive/976fa3369d722e76f37c77493d99829540d43845.tar.gz";
    }) {};

    myPkg = pkgs.awscli2;```
in
Maybe an example of a working Nix shell would help.
02:22:02
@brunzefb:matrix.orgbrunzefbYes, very helpful. Thanks so much for your help!02:22:42
@qyliss:fairydust.space@qyliss:fairydust.space left the room.09:22:27
29 Mar 2024
@sebtm:lodere.esSebTM joined the room.03:40:11
@sebtm:lodere.esSebTM left the room.04:21:23
@sebtm:lodere.esSebTM joined the room.05:37:47
30 Mar 2024
@reedrichards:matrix.org@reedrichards:matrix.org joined the room.22:37:49
@reedrichards:matrix.org@reedrichards:matrix.orgis there a way to enable external networking during a nixos integration test?22:38:24
31 Mar 2024
@rvdp:infosec.exchangeRamses 🇵🇸 Afaik not without either turning the derivation into a FOD, or disabling the sandbox (__noChroot = true;) 01:12:24

Show newer messages


Back to Room ListRoom Version: 9