Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lomiri.lomiri-sounds: init at 22.02 #260947

Merged
1 commit merged into from
Jan 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions pkgs/desktops/lomiri/data/lomiri-sounds/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,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
];
Comment on lines +28 to +30
Copy link

@ghost ghost Jan 19, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should validatePkgConfig be here as well?

... doesn't look like it is all that common, only included in 18 files in nixpkgs/pkgs/...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting… Didn't know that was a thing. I'll keep it in mind!


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"
];
};
})
1 change: 1 addition & 0 deletions pkgs/desktops/lomiri/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ let
in {
#### Data
lomiri-schemas = callPackage ./data/lomiri-schemas { };
lomiri-sounds = callPackage ./data/lomiri-sounds { };
suru-icon-theme = callPackage ./data/suru-icon-theme { };

#### Development tools / libraries
Expand Down