From d72b69646e99b0530e51fe3e4007a0e6034de548 Mon Sep 17 00:00:00 2001 From: autumn-the-kitty-cat Date: Tue, 19 May 2026 17:46:18 -0400 Subject: [PATCH] feat: init --- README.md | 1 + flake.lock | 27 +++++++++++++++++++++++++++ flake.nix | 41 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 69 insertions(+) create mode 100644 README.md create mode 100644 flake.lock create mode 100644 flake.nix diff --git a/README.md b/README.md new file mode 100644 index 0000000..085f8f5 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ + diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..94e0bfb --- /dev/null +++ b/flake.lock @@ -0,0 +1,27 @@ +{ + "nodes": { + "nixpkgs": { + "locked": { + "lastModified": 1778869304, + "narHash": "sha256-30sZNZoA1cqF5JNO9fVX+wgiQYjB7HJqqJ4ztCDeBZE=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "d233902339c02a9c334e7e593de68855ad26c4cb", + "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..385310c --- /dev/null +++ b/flake.nix @@ -0,0 +1,41 @@ +{ + description = "A simple, hackable, and distinctive Wayland wallpaper setter"; + inputs = { + nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; + }; + outputs = + { ... }@inputs: + let + pkgs = import inputs.nixpkgs { system = "x86_64-linux"; }; + system = pkgs.stdenv.system; + in + { + packages.${system}.default = pkgs.stdenv.mkDerivation { + name = "wawa"; + version = "1.0"; + src = pkgs.fetchFromCodeberg { + owner = "sewn"; + repo = "wawa"; + rev = "988c5d10a1535b0243a0191f71d522e9abeea2de"; + hash = "sha256-nu8BjALjrlcm0AnBcRZxMjn+soozAU58nvqLuiN3UHk="; + }; + buildInputs = with pkgs; [ + pkg-config + wayland + wayland-protocols + wayland-scanner + ]; + makeFlags = [ + "DESTDIR=$(out)" + "PREFIX=" + ]; + patchPhase = '' + runHook prePatch + + sed -i '15s/-Wall/-Wall -Wno-incompatible-pointer-types -D_GNU_SOURCE/' Makefile + + runHook postPatch + ''; + }; + }; +}