mirror of
https://github.com/JaxTheWolf/nixos.git
synced 2026-04-01 02:00:22 +02:00
Add flake for newer clion
This commit is contained in:
30
common/flakes/clion-flake/flake.nix
Normal file
30
common/flakes/clion-flake/flake.nix
Normal file
@@ -0,0 +1,30 @@
|
||||
{
|
||||
description = "Latest CLion from JetBrains";
|
||||
|
||||
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
|
||||
outputs = {
|
||||
self,
|
||||
nixpkgs,
|
||||
}: let
|
||||
system = "x86_64-linux";
|
||||
pkgs = import nixpkgs {
|
||||
inherit system;
|
||||
config = {
|
||||
allowUnfree = true;
|
||||
permittedInsecurePackages = [
|
||||
"openssl-1.1.1w"
|
||||
];
|
||||
};
|
||||
};
|
||||
in {
|
||||
packages.${system}.default = pkgs.jetbrains.clion.overrideAttrs (oldAttrs: rec {
|
||||
version = "2026.1";
|
||||
src = pkgs.fetchurl {
|
||||
url = "https://download-cdn.jetbrains.com/cpp/CLion-${version}.tar.gz";
|
||||
hash = "sha256-r5flY2u6aCkI8q7ZcGWYLLxxcWWp3gtTkdBdKoacIB0=";
|
||||
};
|
||||
buildInputs = oldAttrs.buildInputs ++ [pkgs.openssl_1_1];
|
||||
});
|
||||
};
|
||||
}
|
||||
@@ -2,6 +2,7 @@
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
clion-flake,
|
||||
czkawka-master,
|
||||
solaar-master,
|
||||
fet,
|
||||
@@ -15,6 +16,7 @@
|
||||
"cisco-packet-tracer_9"
|
||||
];
|
||||
};
|
||||
|
||||
overlays = [
|
||||
(final: prev: {
|
||||
nautilus = prev.nautilus.overrideAttrs (nprev: {
|
||||
@@ -91,7 +93,8 @@
|
||||
iftop
|
||||
inkscape
|
||||
iotop
|
||||
jetbrains.clion
|
||||
#jetbrains.clion
|
||||
clion-flake.packages.${pkgs.stdenv.hostPlatform.system}.default
|
||||
jq
|
||||
just
|
||||
killall
|
||||
|
||||
Reference in New Issue
Block a user