mirror of
https://github.com/JaxTheWolf/nixos.git
synced 2026-03-31 17:50:23 +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,
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
lib,
|
lib,
|
||||||
|
clion-flake,
|
||||||
czkawka-master,
|
czkawka-master,
|
||||||
solaar-master,
|
solaar-master,
|
||||||
fet,
|
fet,
|
||||||
@@ -15,6 +16,7 @@
|
|||||||
"cisco-packet-tracer_9"
|
"cisco-packet-tracer_9"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
overlays = [
|
overlays = [
|
||||||
(final: prev: {
|
(final: prev: {
|
||||||
nautilus = prev.nautilus.overrideAttrs (nprev: {
|
nautilus = prev.nautilus.overrideAttrs (nprev: {
|
||||||
@@ -91,7 +93,8 @@
|
|||||||
iftop
|
iftop
|
||||||
inkscape
|
inkscape
|
||||||
iotop
|
iotop
|
||||||
jetbrains.clion
|
#jetbrains.clion
|
||||||
|
clion-flake.packages.${pkgs.stdenv.hostPlatform.system}.default
|
||||||
jq
|
jq
|
||||||
just
|
just
|
||||||
killall
|
killall
|
||||||
|
|||||||
37
flake.lock
generated
37
flake.lock
generated
@@ -1,10 +1,24 @@
|
|||||||
{
|
{
|
||||||
"nodes": {
|
"nodes": {
|
||||||
|
"clion-flake": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": "nixpkgs"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"path": "./common/flakes/clion-flake",
|
||||||
|
"type": "path"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"path": "./common/flakes/clion-flake",
|
||||||
|
"type": "path"
|
||||||
|
},
|
||||||
|
"parent": []
|
||||||
|
},
|
||||||
"czkawka-master": {
|
"czkawka-master": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"czkawka-src": "czkawka-src",
|
"czkawka-src": "czkawka-src",
|
||||||
"naersk": "naersk",
|
"naersk": "naersk",
|
||||||
"nixpkgs": "nixpkgs"
|
"nixpkgs": "nixpkgs_2"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"path": "./common/flakes/czkawka-master",
|
"path": "./common/flakes/czkawka-master",
|
||||||
@@ -58,7 +72,7 @@
|
|||||||
"fet": {
|
"fet": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-utils": "flake-utils",
|
"flake-utils": "flake-utils",
|
||||||
"nixpkgs": "nixpkgs_2"
|
"nixpkgs": "nixpkgs_3"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"path": "./common/flakes/fet",
|
"path": "./common/flakes/fet",
|
||||||
@@ -178,6 +192,22 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixpkgs_3": {
|
"nixpkgs_3": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1774386573,
|
||||||
|
"narHash": "sha256-4hAV26quOxdC6iyG7kYaZcM3VOskcPUrdCQd/nx8obc=",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "46db2e09e1d3f113a13c0d7b81e2f221c63b8ce9",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "NixOS",
|
||||||
|
"ref": "nixos-unstable",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nixpkgs_4": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1774612448,
|
"lastModified": 1774612448,
|
||||||
"narHash": "sha256-+uVDNwxihd82I6aZTgNvIXqFyLcfUBkg/Y0A8UBgycg=",
|
"narHash": "sha256-+uVDNwxihd82I6aZTgNvIXqFyLcfUBkg/Y0A8UBgycg=",
|
||||||
@@ -195,11 +225,12 @@
|
|||||||
},
|
},
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
|
"clion-flake": "clion-flake",
|
||||||
"czkawka-master": "czkawka-master",
|
"czkawka-master": "czkawka-master",
|
||||||
"fet": "fet",
|
"fet": "fet",
|
||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
"nix-flatpak": "nix-flatpak",
|
"nix-flatpak": "nix-flatpak",
|
||||||
"nixpkgs": "nixpkgs_3"
|
"nixpkgs": "nixpkgs_4"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"rust-analyzer-src": {
|
"rust-analyzer-src": {
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
|
|
||||||
czkawka-master.url = "path:./common/flakes/czkawka-master";
|
czkawka-master.url = "path:./common/flakes/czkawka-master";
|
||||||
fet.url = "path:./common/flakes/fet";
|
fet.url = "path:./common/flakes/fet";
|
||||||
|
clion-flake.url = "path:./common/flakes/clion-flake";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = {
|
outputs = {
|
||||||
@@ -18,7 +19,7 @@
|
|||||||
home-manager,
|
home-manager,
|
||||||
...
|
...
|
||||||
} @ inputs: let
|
} @ inputs: let
|
||||||
specialArgs = {inherit (inputs) czkawka-master fet;};
|
specialArgs = {inherit (inputs) czkawka-master fet clion-flake;};
|
||||||
in {
|
in {
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
epiquev2 = nixpkgs.lib.nixosSystem {
|
epiquev2 = nixpkgs.lib.nixosSystem {
|
||||||
|
|||||||
Reference in New Issue
Block a user