1
0
mirror of https://git.oat.zone/dark-firepit/dotfiles synced 2024-11-23 02:12:26 +01:00
git.oat.zone--dark-firepit-.../lib/pkgs.nix
System administrator ec00c09f2e Dotfiles
2022-01-11 17:44:40 +00:00

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 ];
}