refactor: Move nix
outside of .config
dir
Technically not a config but a compose file, so I think it's better to have outside of `.config` dir
This commit is contained in:
parent
3484b4154a
commit
93a26accd1
22 changed files with 0 additions and 0 deletions
10
nix/lib/darwin/libFixup.nix
Normal file
10
nix/lib/darwin/libFixup.nix
Normal file
|
@ -0,0 +1,10 @@
|
|||
{ package, runCommandLocal, name }:
|
||||
|
||||
runCommandLocal "${name}-symlink" {}
|
||||
''
|
||||
dest="/usr/local/opt/${name}"
|
||||
|
||||
mkdir -p $dest
|
||||
|
||||
ln -sf "${package.out}/lib/" "$dest" && mkdir -p "$out" && touch "$out/${name}-done"
|
||||
''
|
22
nix/lib/darwin/mkApp.nix
Normal file
22
nix/lib/darwin/mkApp.nix
Normal file
|
@ -0,0 +1,22 @@
|
|||
# REF: https://github.com/bandithedoge/nixpkgs-firefox-darwin/blob/ceaca2359e5371ccef3f92a36baf7c438b354afb/overlay.nix
|
||||
{ stdenv, undmg, _7zz, pname, version, sourceRoot ? ".", appFileName, src, meta
|
||||
, nativeBuildInputs ? [ undmg _7zz ]
|
||||
, unpackPhase ? "undmg $src || 7zz x -snld $src"
|
||||
, installPhase ? ''
|
||||
mkdir -p $out/Applications
|
||||
cp -R ${appFileName} "$out/Applications/"
|
||||
''
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
inherit pname version;
|
||||
|
||||
inherit src nativeBuildInputs;
|
||||
|
||||
inherit sourceRoot;
|
||||
|
||||
phases = [ "unpackPhase" "installPhase" ];
|
||||
inherit unpackPhase installPhase;
|
||||
|
||||
inherit meta;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue