mirror of
https://git.oat.zone/dark-firepit/dotfiles
synced 2024-11-23 02:12:26 +01:00
21 lines
445 B
Nix
21 lines
445 B
Nix
{ pkgs, ... }:
|
|
|
|
let
|
|
inherit (pkgs.stdenv) mkDerivation;
|
|
in rec {
|
|
_buildBinScript = buildInputs: name: mkDerivation {
|
|
inherit name buildInputs;
|
|
|
|
src = builtins.path { path = ../bin; name = "dotfiles"; };
|
|
|
|
buildCommand = ''
|
|
install -Dm755 $src/${name} $out/bin/${name}
|
|
patchShebangs $out/bin/${name}
|
|
'';
|
|
};
|
|
|
|
buildBinScript = _buildBinScript [];
|
|
|
|
buildBabashkaBinScript = _buildBinScript [ pkgs.babashka ];
|
|
}
|