[nix] cross-compile cmd/cli using flake.nix.#292
[nix] cross-compile cmd/cli using flake.nix.#292c4lliope wants to merge 1 commit intorailwayapp:mainfrom
cmd/cli using flake.nix.#292Conversation
|
oh, I'm a lil silly. I kept the |
|
Yep. There ya go. For anyone else, until this is merged, import this module to your home-manager profile: # railpack.home.nix
{ pkgs, edge, ... }: let
railpack = pkgs.buildGoModule rec {
pname = "railpack";
version = "0.9.0";
subPackages = [ "cmd/cli" ];
src = pkgs.fetchFromGitHub {
owner = "railwayapp";
repo = "railpack";
rev = "v${version}";
sha256 = "sha256-7aXv4g1/Bqovq9JMKpH+wYx2JPeklurnZzQmlMaRUXc=";
};
vendorHash = "sha256-bn6GsJBRg4S5IWBShlYXk12nNuAnv4MmKZvxE0sujT8=";
};
in {
programs.mise = {
enable = true;
# enableNushellIntegration = false;
};
home.packages = with pkgs; [
(pkgs.writeShellScriptBin "railpack" "exec -a $0 ${railpack}/bin/cli $@")
];
}The one |
|
huh.... is there an ENV var we can use to pass in the |
|
@c4lliope railpack doesn't use nix—did you intent to submit this PR to railpack? Let me know what I'm missing! |
coffee-cup
left a comment
There was a problem hiding this comment.
If we merge this then the release action
| in { | ||
| packages.default = pkgs.buildGoModule { | ||
| pname = "railpack"; | ||
| version = "0.9.0"; |
There was a problem hiding this comment.
The release action should be updated to bump this, otherwise it will always be out of date
I think this is so people can install Railpack with Nix.
@c4lliope there is not, but we can add one. What would you expect it to be? |
|
Sorry to drop comms, I'm at https://www.dcstw.com/ and the schedule is packed! |
|
@c4lliope friendly bump here! Would be great to get this merged in. |
(... a small missing piece.)
largely based on: https://wiki.nixos.org/wiki/Go
depends on: https://github.com/numtide/flake-utils