mirror of
https://git.oat.zone/dark-firepit/dotfiles
synced 2024-05-10 01:06:09 +02: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 ];
|
||
|
}
|