-
-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathflake.nix
More file actions
23 lines (22 loc) · 822 Bytes
/
Copy pathflake.nix
File metadata and controls
23 lines (22 loc) · 822 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-26.05";
inputs.flake-parts.url = "github:hercules-ci/flake-parts";
inputs.systems.url = "github:nix-systems/default";
outputs = { flake-parts, ... }@inputs: flake-parts.lib.mkFlake { inherit inputs; } {
systems = import inputs.systems;
perSystem = { pkgs, ... }: {
packages.default = pkgs.stdenv.mkDerivation {
dontUnpack = true;
name = "bash-stack";
nativeBuildInputs = [ pkgs.makeWrapper ];
installPhase = ''
mkdir -p $out/bin $out/share
cp ${./core.sh} $out/share/core.sh
makeWrapper ${./start.sh} $out/bin/bash-stack \
--set-default CORE_SH $out/share/core.sh \
--suffix PATH : ${with pkgs; lib.makeBinPath [ ucspi-tcp ] }
'';
};
};
};
}