feat: move scripts to cross-platform
This commit is contained in:
parent
7a20e3c6ac
commit
b47f4adb76
6 changed files with 2 additions and 2 deletions
|
@ -11,7 +11,6 @@
|
|||
./nnn.nix
|
||||
./obs-studio.nix
|
||||
./restic.nix
|
||||
./scripts.nix
|
||||
./shell-additions.nix
|
||||
];
|
||||
|
||||
|
@ -23,7 +22,6 @@
|
|||
crony.restic.enable = lib.mkDefault true;
|
||||
crony.hyprland.enable = lib.mkDefault true;
|
||||
crony.browsers.enable = lib.mkDefault true;
|
||||
crony.scripts.enable = lib.mkDefault true;
|
||||
crony.emulators.enable = lib.mkDefault true;
|
||||
crony.desktop.enable = lib.mkDefault true;
|
||||
crony.gaming.enable = lib.mkDefault true;
|
||||
|
|
|
@ -1,16 +0,0 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
options = {
|
||||
crony.scripts.enable = lib.mkEnableOption "Enable my custom scripts";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.crony.scripts.enable {
|
||||
home.packages = with pkgs; [
|
||||
(callPackage ./scripts {inherit pkgs;})
|
||||
];
|
||||
};
|
||||
}
|
|
@ -1,7 +0,0 @@
|
|||
#!/usr/bin/env sh
|
||||
|
||||
for File in *.cue; do
|
||||
[ -f "$File" ] || continue
|
||||
chdman createcd -i "$File" -o "${File%.cue}.chd"
|
||||
rm -v "$File" "${File%.cue}"*.bin
|
||||
done
|
|
@ -1,7 +0,0 @@
|
|||
#!/usr/bin/env sh
|
||||
|
||||
for File in *.iso; do
|
||||
[ -f "$File" ] || continue
|
||||
chdman createdvd -i "$File" -o "${File%.iso}.chd"
|
||||
rm -v "$File"
|
||||
done
|
|
@ -1,27 +0,0 @@
|
|||
{pkgs, ...}:
|
||||
with pkgs;
|
||||
stdenv.mkDerivation {
|
||||
pname = "scripts";
|
||||
version = "1";
|
||||
src = ./bin;
|
||||
|
||||
nativeBuildInputs = [makeWrapper];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
|
||||
# move scripts to bin
|
||||
mv ./* $out/bin
|
||||
|
||||
# Fix shebangs for scripts
|
||||
patchShebangs $out/bin
|
||||
|
||||
# Add dependencies to the runtime for my cue2chd script
|
||||
wrapProgram $out/bin/cue2chd \
|
||||
--prefix PATH : ${lib.makeBinPath [mame-tools]}
|
||||
|
||||
# Add dependencies to the runtime for my iso2chd script
|
||||
wrapProgram $out/bin/cue2chd \
|
||||
--prefix PATH : ${lib.makeBinPath [mame-tools]}
|
||||
'';
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue