!SgYlXivkogarTVcnZO:nixos.org

Nix Flakes

846 Members
175 Servers

Load older messages


SenderMessageTime
16 Oct 2025
@rav:vergara.techRene I don't even have a cargo-1.79 entry in /nix/store, I have no idea why the error says that 14:20:24
@rav:vergara.techRene Here's what I have found so far. If I revert the changes to the crate versions, the flake will start the devShell, with cargo-1.86. From what I read, I need at least 1.87 to fix the broken crate. 16:34:46
@rav:vergara.techRenebut I'm on the latest nightly, why would Cargo be from back in Feb?16:35:09
@rav:vergara.techRene In case it helps anyone, it turns out that the cargo-c crate has a (somehow) embedded Cargo. The fix was to move to nixpkgs-unstable, where cargo-c has a version of Cargo compatible with the base64ct crate. 20:01:28
@sross:matrix.orgSean Ross joined the room.23:00:02
17 Oct 2025
@kumavis_gh:matrix.orgkumavis joined the room.07:28:02
@kumavis_gh:matrix.orgkumavisRedacted or Malformed Event07:36:15
@kumavis_gh:matrix.orgkumavisRedacted or Malformed Event07:37:15
@tumypmyp:matrix.orgTimur Gainullin changed their profile picture.09:53:46
@turbio:matrix.orgturbio joined the room.23:54:21
18 Oct 2025
@ihar.hrachyshka:matrix.org@ihar.hrachyshka:matrix.org left the room.00:12:24
19 Oct 2025
@tiferrei:tiferrei.comtiferrei joined the room.15:43:27
@tiferrei:matrix.org@tiferrei:matrix.org left the room.15:45:28
@azahi:azahi.cc@azahi:azahi.cc left the room.15:47:03
@edrex:matrix.orgedrex left the room.16:23:21
20 Oct 2025
@tiferrei:tiferrei.comtiferrei changed their display name from Tiago Ferreira to tiferrei.17:34:14
21 Oct 2025
@alexeusgr:matrix.org50^2 changed their profile picture.04:51:46
@andrewzah:matrix.abare.partyAndrew Zah set a profile picture.09:49:41
@xx0a_q:matrix.org@xx0a_q:matrix.org joined the room.11:47:34
@xx0a_q:matrix.org@xx0a_q:matrix.org left the room.17:36:59
22 Oct 2025
@cortsf:matrix.orgcortsf joined the room.01:07:52
@cortsf:matrix.orgcortsf Hello. Can I have some help? I'm trying to publish a flake (using haskell.nix) into nixpkgs. Not sure if using builtins.getFlake is ok, since there is no derivation using it apparently. 01:09:25
@cortsf:matrix.orgcortsfhttps://github.com/cortsf/hympd01:09:47
@cortsf:matrix.orgcortsf

This seems to work locally.

{ pkgs ? import <nixpkgs> {} }:
let
  hympdFlake = builtins.getFlake "github:cortsf/hympd?rev=ea295556192e4c436917313da11211d8b1d47299";
  hympdPackage = hympdFlake.packages.${pkgs.system}.default;
in
pkgs.stdenv.mkDerivation {
  pname = "hympd";
  version = "1.0";
  src = ./.;
  buildInputs = [ hympdPackage ];
  # buildPhase = ''
  #   echo "Using my-package from the other flake: ${myPackage}/bin/some-command"
  # '';
  installPhase = ''
    mkdir -p $out/bin
    cp ${hympdPackage}/bin/hympd $out/bin
  '';
}

01:10:02
@cortsf:matrix.orgcortsf *

This seems to work locally.

{ pkgs ? import <nixpkgs> {} }:
let
  hympdFlake = builtins.getFlake "github:cortsf/hympd?rev=ea295556192e4c436917313da11211d8b1d47299";
  hympdPackage = hympdFlake.packages.${pkgs.system}.default;
in
pkgs.stdenv.mkDerivation {
  pname = "hympd";
  version = "1.0";
  src = ./.;
  buildInputs = [ hympdPackage ];
  installPhase = ''
    mkdir -p $out/bin
    cp ${hympdPackage}/bin/hympd $out/bin
  '';
}

01:13:55
@ipsavitsky234:matrix.orgipsavitsky234 cortsfnot sure what you mean by "publish a nix flake to nixpkgs", can you elaborate pls? 09:56:16
@cortsf:matrix.orgcortsf ipsavitsky234: I just made a simple program and I'd like it to be available on nixpkgs, if possible. 11:06:28
@dramforever:matrix.orgdramforever no, builtins.getFlake is not okay, nor is any other way to download external code during evaluation in nixpkgs 11:07:27
@gabyx:matrix.org@gabyx:matrix.org
In reply to @cortsf:matrix.org
ipsavitsky234: I just made a simple program and I'd like it to be available on nixpkgs, if possible.
people can use your program also when its an output in a flake.nix
11:08:02
@dramforever:matrix.orgdramforevergenerally you want to check how some similar thing is packaged in nixpkgs, and just copy what they do11:08:17

Show newer messages


Back to Room ListRoom Version: 6