blob: 1b54723b2925e702e6f4ce0174a4bb4838aa5c11 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
{ stdenvNoCC
, lib
, fetchFromGitLab
, gitUpdater
, testers
, cmake
}:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "lomiri-sounds";
version = "22.02";
src = fetchFromGitLab {
owner = "ubports";
repo = "development/core/lomiri-sounds";
rev = finalAttrs.version;
hash = "sha256-t9JYxrJ5ICslxidHmbD1wa6n7XZMf2a+PgMLcwgsDvU=";
};
postPatch = ''
# Doesn't need a compiler, only installs data
substituteInPlace CMakeLists.txt \
--replace 'project (lomiri-sounds)' 'project (lomiri-sounds LANGUAGES NONE)'
'';
strictDeps = true;
nativeBuildInputs = [
cmake
];
passthru = {
tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
updateScript = gitUpdater { };
};
meta = with lib; {
description = "Notification and ringtone sound effects for Lomiri";
homepage = "https://gitlab.com/ubports/development/core/lomiri-sounds";
license = with licenses; [ cc-by-30 cc0 cc-by-sa-30 cc-by-40 ];
maintainers = teams.lomiri.members;
platforms = platforms.all;
pkgConfigModules = [
"lomiri-sounds"
];
};
})
|