mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-06 01:38:06 +00:00
[Overlays+Packages] add clion-fhs with a few helpful packages included
Easier "standard flow" development
This commit is contained in:
parent
09111b2825
commit
7eafff8f8a
1 changed files with 30 additions and 1 deletions
31
overlays.nix
31
overlays.nix
|
|
@ -3,6 +3,7 @@ with builtins;
|
||||||
with lib;
|
with lib;
|
||||||
let
|
let
|
||||||
cfg = config.aviallon.overlays;
|
cfg = config.aviallon.overlays;
|
||||||
|
pkgNames = pkgs: forEach pkgs (p: "${getName p}-${p.version}");
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
@ -118,7 +119,6 @@ in
|
||||||
false
|
false
|
||||||
;
|
;
|
||||||
interpreters = pkgs: filter (x: myIsDerivation x) (attrValues pkgs.pythonInterpreters);
|
interpreters = pkgs: filter (x: myIsDerivation x) (attrValues pkgs.pythonInterpreters);
|
||||||
pkgNames = pkgs: forEach pkgs (p: "${getName p}-${p.version}");
|
|
||||||
unwrapped = final.jetbrains.pycharm-professional;
|
unwrapped = final.jetbrains.pycharm-professional;
|
||||||
in prev.buildFHSUserEnv rec {
|
in prev.buildFHSUserEnv rec {
|
||||||
name = "pycharm-professional";
|
name = "pycharm-professional";
|
||||||
|
|
@ -141,6 +141,35 @@ in
|
||||||
|
|
||||||
runScript = "${unwrapped}/bin/pycharm-professional";
|
runScript = "${unwrapped}/bin/pycharm-professional";
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
clion-fhs = let
|
||||||
|
compilers = pkgs: with pkgs; with llvmPackages_17; [
|
||||||
|
(setPrio (-9) gcc13)
|
||||||
|
(hiPrio clang)
|
||||||
|
clang-unwrapped
|
||||||
|
libcxx
|
||||||
|
];
|
||||||
|
in prev.buildFHSUserEnv rec {
|
||||||
|
name = "clion";
|
||||||
|
targetPkgs = pkgs: (with pkgs;
|
||||||
|
[
|
||||||
|
jetbrains.clion
|
||||||
|
(hiPrio cmake)
|
||||||
|
(hiPrio ninja)
|
||||||
|
gnumake
|
||||||
|
extra-cmake-modules
|
||||||
|
]
|
||||||
|
++ trace "Using the following compilers: ${toString (pkgNames (compilers pkgs))}" (compilers pkgs)
|
||||||
|
);
|
||||||
|
# symlink shared assets, including icons and desktop entries
|
||||||
|
extraInstallCommands = ''
|
||||||
|
ln -s "${prev.jetbrains.clion}/share" "$out/"
|
||||||
|
'';
|
||||||
|
extraOutputsToInstall = [ "include" "dev" "doc" ];
|
||||||
|
|
||||||
|
runScript = "/usr/bin/clion";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue