Compare commits

...

2 commits

Author SHA1 Message Date
074616090a Add direnv configuration 2025-04-21 14:30:45 +02:00
af078470fa Add nix flake with devshell 2025-04-21 14:29:33 +02:00
4 changed files with 63 additions and 0 deletions

1
.envrc Normal file
View file

@ -0,0 +1 @@
use flake

3
.gitignore vendored
View file

@ -93,6 +93,9 @@ compile_commands.json
result
result-*
# ---> Direnv
.direnv
# ---> CMake
CMakeLists.txt.user
CMakeCache.txt

26
flake.lock generated Normal file
View file

@ -0,0 +1,26 @@
{
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1744932701,
"narHash": "sha256-fusHbZCyv126cyArUwwKrLdCkgVAIaa/fQJYFlCEqiU=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "b024ced1aac25639f8ca8fdfc2f8c4fbd66c48ef",
"type": "github"
},
"original": {
"id": "nixpkgs",
"ref": "nixos-unstable",
"type": "indirect"
}
},
"root": {
"inputs": {
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}

33
flake.nix Normal file
View file

@ -0,0 +1,33 @@
{
description = "Leek flake";
inputs.nixpkgs.url = "nixpkgs/nixos-unstable";
outputs = { nixpkgs, ... }:
let
pkgs = nixpkgs.legacyPackages.x86_64-linux;
lib = nixpkgs.lib;
in
{
devShells.x86_64-linux.default = pkgs.mkShell {
name = "leek-devshell";
packages =
let
kdeDeps = with pkgs.kdePackages; [
extra-cmake-modules
qtbase
qtdeclarative
kirigami
ki18n
kcoreaddons
qqc2-desktop-style
];
in
with pkgs; [
clang-tools
cmake
] ++ kdeDeps;
};
};
}