mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2025-04-26 00:18:28 +02:00
configured crowdsec
This commit is contained in:
parent
5fa24530b1
commit
60e1f3c3d0
9 changed files with 196 additions and 17 deletions
49
pkgs/gnome-break-timer/0001-remove-install-script.patch
Normal file
49
pkgs/gnome-break-timer/0001-remove-install-script.patch
Normal file
|
@ -0,0 +1,49 @@
|
|||
From 07c3436bf3803a9b939df7fe9c0f4ab70c21e5ad Mon Sep 17 00:00:00 2001
|
||||
From: Rouven Seifert <rouven@rfive.de>
|
||||
Date: Mon, 24 Jul 2023 20:59:57 +0200
|
||||
Subject: [PATCH] remove install script
|
||||
|
||||
---
|
||||
build-aux/meson/postinstall.py | 19 -------------------
|
||||
meson.build | 2 --
|
||||
2 files changed, 21 deletions(-)
|
||||
delete mode 100755 build-aux/meson/postinstall.py
|
||||
|
||||
diff --git a/build-aux/meson/postinstall.py b/build-aux/meson/postinstall.py
|
||||
deleted file mode 100755
|
||||
index 7fb0345..0000000
|
||||
--- a/build-aux/meson/postinstall.py
|
||||
+++ /dev/null
|
||||
@@ -1,19 +0,0 @@
|
||||
-#!/usr/bin/env python3
|
||||
-
|
||||
-from os import environ, path
|
||||
-from subprocess import call
|
||||
-
|
||||
-prefix = environ.get('MESON_INSTALL_PREFIX', '/usr/local')
|
||||
-datadir = path.join(prefix, 'share')
|
||||
-destdir = environ.get('DESTDIR', '')
|
||||
-
|
||||
-if not destdir:
|
||||
- print('Updating icon cache...')
|
||||
- call(['gtk-update-icon-cache', '-qtf', path.join(datadir, 'icons', 'hicolor')])
|
||||
-
|
||||
- print('Updating desktop database...')
|
||||
- call(['update-desktop-database', '-q', path.join(datadir, 'applications')])
|
||||
-
|
||||
- print('Compiling GSettings schemas...')
|
||||
- call(['glib-compile-schemas', path.join(datadir, 'glib-2.0', 'schemas')])
|
||||
-
|
||||
diff --git a/meson.build b/meson.build
|
||||
index 0a07ef3..edd6a67 100644
|
||||
--- a/meson.build
|
||||
+++ b/meson.build
|
||||
@@ -95,5 +95,3 @@ subdir('po')
|
||||
subdir('data')
|
||||
subdir('src')
|
||||
subdir('tests')
|
||||
-
|
||||
-meson.add_install_script('build-aux/meson/postinstall.py')
|
||||
--
|
||||
2.41.0
|
||||
|
62
pkgs/gnome-break-timer/default.nix
Normal file
62
pkgs/gnome-break-timer/default.nix
Normal file
|
@ -0,0 +1,62 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchurl
|
||||
, meson
|
||||
, vala
|
||||
, pkgconfig
|
||||
, cairo
|
||||
, gsound
|
||||
, gtk3
|
||||
, json-glib
|
||||
, libcanberra
|
||||
, libnotify
|
||||
, ninja
|
||||
, gtk4
|
||||
, glib
|
||||
, gsettings-desktop-schemas
|
||||
, wrapGAppsHook
|
||||
}:
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "gnome-break-timer";
|
||||
version = "2.1.0";
|
||||
src = fetchurl {
|
||||
url = "https://gitlab.gnome.org/GNOME/${pname}/-/archive/${version}/${pname}-${version}.tar.gz";
|
||||
sha256 = "sha256-B13vZbYwniB9+ZF/XduJHvOd6FwZUpMIdbB8EPUbuS8=";
|
||||
};
|
||||
|
||||
MESON_INSTALL_PREFIX = "$out";
|
||||
nativeBuildInputs = [
|
||||
meson
|
||||
ninja
|
||||
vala
|
||||
pkgconfig
|
||||
cairo
|
||||
gsound
|
||||
gtk3
|
||||
json-glib
|
||||
libcanberra
|
||||
libnotify
|
||||
wrapGAppsHook
|
||||
glib.dev
|
||||
];
|
||||
buildInputs = [
|
||||
gtk4
|
||||
glib
|
||||
gsettings-desktop-schemas
|
||||
];
|
||||
|
||||
patches = [ ./0001-remove-install-script.patch ];
|
||||
|
||||
postInstall = ''
|
||||
glib-compile-schemas $out/share/glib-2.0/schemas
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://wiki.gnome.org/Apps/BreakTimer";
|
||||
description = "Clock application designed for GNOME 3";
|
||||
maintainers = [ maintainers.therealr5 ];
|
||||
license = licenses.gpl2Plus;
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue