diff options
author | Nathan Reiner <nathan@nathanreiner.xyz> | 2024-09-16 16:48:48 +0200 |
---|---|---|
committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2024-09-16 16:48:48 +0200 |
commit | fecce5d97625c02b6d3fa20e74a904ae3db5ec32 (patch) | |
tree | cc0d7188aaf4933e692f7bb1526002411b922b35 | |
parent | 68fda3508d31ee5c1a310580c389d4bf7e805283 (diff) |
add flake definition
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | flake.lock | 27 | ||||
-rw-r--r-- | flake.nix | 28 |
3 files changed, 56 insertions, 1 deletions
@@ -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 + ]; + }; + }; +} |