aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2024-09-16 16:48:48 +0200
committerNathan Reiner <nathan@nathanreiner.xyz>2024-09-16 16:48:48 +0200
commitfecce5d97625c02b6d3fa20e74a904ae3db5ec32 (patch)
treecc0d7188aaf4933e692f7bb1526002411b922b35
parent68fda3508d31ee5c1a310580c389d4bf7e805283 (diff)
add flake definition
-rw-r--r--.gitignore2
-rw-r--r--flake.lock27
-rw-r--r--flake.nix28
3 files changed, 56 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
index 1235596..7e0cf01 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,4 @@
target/
compile_commands.json
.cache/
-result/
+result
diff --git a/flake.lock b/flake.lock
new file mode 100644
index 0000000..34dde40
--- /dev/null
+++ b/flake.lock
@@ -0,0 +1,27 @@
+{
+ "nodes": {
+ "nixpkgs": {
+ "locked": {
+ "lastModified": 1726243404,
+ "narHash": "sha256-sjiGsMh+1cWXb53Tecsm4skyFNag33GPbVgCdfj3n9I=",
+ "owner": "nixos",
+ "repo": "nixpkgs",
+ "rev": "345c263f2f53a3710abe117f28a5cb86d0ba4059",
+ "type": "github"
+ },
+ "original": {
+ "owner": "nixos",
+ "ref": "nixos-unstable",
+ "repo": "nixpkgs",
+ "type": "github"
+ }
+ },
+ "root": {
+ "inputs": {
+ "nixpkgs": "nixpkgs"
+ }
+ }
+ },
+ "root": "root",
+ "version": 7
+}
diff --git a/flake.nix b/flake.nix
new file mode 100644
index 0000000..3f612d9
--- /dev/null
+++ b/flake.nix
@@ -0,0 +1,28 @@
+{
+ description = "WebTray Flake";
+
+ inputs = {
+ nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
+ };
+
+ outputs =
+ { self, nixpkgs }:
+ let
+ pkgs = import nixpkgs { system = "x86_64-linux"; };
+ in
+ {
+ packages.x86_64-linux.default = pkgs.stdenv.mkDerivation {
+ name = "webtray";
+ src = self;
+ buildPhase = "qmake6 . && make";
+ installPhase = "mkdir -p $out/bin; install -t $out/bin webtray";
+
+ buildInputs = [
+ pkgs.kdePackages.wrapQtAppsHook
+ pkgs.kdePackages.qmake
+ pkgs.kdePackages.qtwebengine
+ pkgs.kdePackages.qtwayland
+ ];
+ };
+ };
+}