| 21 Oct 2025 |
| @xx0a_q:matrix.org joined the room. | 11:47:34 |
| @xx0a_q:matrix.org left the room. | 17:36:59 |
| 22 Oct 2025 |
| cortsf joined the room. | 01:07:52 |
cortsf | 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 | https://github.com/cortsf/hympd | 01:09:47 |
cortsf | 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 | * 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 | cortsfnot sure what you mean by "publish a nix flake to nixpkgs", can you elaborate pls? | 09:56:16 |
cortsf | ipsavitsky234: I just made a simple program and I'd like it to be available on nixpkgs, if possible. | 11:06:28 |