summaryrefslogtreecommitdiff
path: root/2026/flake.nix
diff options
context:
space:
mode:
authorLLLL Colonq <llll@colonq>2026-06-18 19:26:09 -0400
committerLLLL Colonq <llll@colonq>2026-06-18 19:26:09 -0400
commitcd03974523bd7c46ca32c07a1b145e1710218b44 (patch)
tree1966d81da0c967469a00672767781137744a4c84 /2026/flake.nix
parent47036ba678949ade21ecbecaeb780b324f6ce3ee (diff)
Add nonnix build
Diffstat (limited to '2026/flake.nix')
-rw-r--r--2026/flake.nix15
1 files changed, 14 insertions, 1 deletions
diff --git a/2026/flake.nix b/2026/flake.nix
index 01977ff..75bc1eb 100644
--- a/2026/flake.nix
+++ b/2026/flake.nix
@@ -10,9 +10,22 @@
pkgs = import nixpkgs { inherit system; };
jam = inputs.teleia.native.build ./. "jam";
windows = inputs.teleia.windows.build ./. "jam";
+ nonnix = pkgs.stdenv.mkDerivation {
+ name = "jam-nonnix";
+ phases = [ "installPhase" ];
+ installPhase = ''
+ mkdir $out
+ cp -rv ${jam}/bin/jam_server $out
+ chmod +w $out/jam_server
+ patchelf --remove-rpath $out/jam_server
+ patchelf --set-interpreter /lib64/ld-linux-x86-64.so.2 $out/jam_server
+ strip $out/jam_server
+ chmod -w $out/jam_server
+ '';
+ };
in {
packages.${system} = {
- inherit jam windows;
+ inherit jam windows nonnix;
default = jam;
};
applications.${system}.default = {