feat: init
This commit is contained in:
@@ -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
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user