Add nix flake with devshell

This commit is contained in:
Toast 2025-04-21 14:29:33 +02:00
parent 6f9e2a393a
commit af078470fa
2 changed files with 59 additions and 0 deletions

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;
};
};
}