Commit 8bfc689

HPCesia <me@hpcesia.com>
2026-09-13 07:05:59
cosmic-enroll: init at 1.2.6
1 parent 0b283e4
Changed files (3)
pkgs/cosmic-enroll/default.nix
@@ -0,0 +1,58 @@
+{
+  lib,
+  stdenv,
+  rustPlatform,
+  fetchFromGitHub,
+  libcosmicAppHook,
+  pkg-config,
+  libxkbcommon,
+  nix-update-script,
+}:
+rustPlatform.buildRustPackage (finalAttrs: {
+  pname = "cosmic-enroll";
+  version = "1.2.6";
+
+  src = fetchFromGitHub {
+    owner = "cosmic-utils";
+    repo = "enroll";
+    tag = "v${finalAttrs.version}";
+    hash = "sha256-0ia0jYr2ngBmCicQFa58K+Ki6pcN/UXYviAQ1nztNqA=";
+  };
+
+  cargoHash = "sha256-gkEgQ6ex7bA+Ag3aBcg0WCW6/Zgned7JUjar2KkYHjw=";
+  doCheck = false;
+
+  nativeBuildInputs = [
+    libcosmicAppHook
+    pkg-config
+  ];
+
+  buildInputs = [libxkbcommon];
+
+  env.VERGEN_GIT_SHA = finalAttrs.src.tag;
+
+  installPhase = ''
+    runHook preInstall
+
+    install -Dm0755 "target/${stdenv.hostPlatform.rust.cargoShortTarget}/release/cosmic-utils-enroll" \
+      "$out/bin/cosmic-utils-enroll"
+    install -Dm0644 resources/org.cosmic_utils.enroll.desktop \
+      "$out/share/applications/org.cosmic_utils.enroll.desktop"
+    install -Dm0644 resources/org.cosmic_utils.enroll.metainfo.xml \
+      "$out/share/metainfo/org.cosmic_utils.enroll.metainfo.xml"
+    install -Dm0644 resources/icons/hicolor/scalable/apps/enroll.svg \
+      "$out/share/icons/hicolor/scalable/apps/org.cosmic_utils.enroll.svg"
+
+    runHook postInstall
+  '';
+
+  passthru.updateScript = nix-update-script {};
+
+  meta = {
+    description = "COSMIC GUI for enrolling fingerprints with fprintd";
+    homepage = "https://github.com/cosmic-utils/enroll";
+    license = lib.licenses.mpl20;
+    mainProgram = "cosmic-utils-enroll";
+    platforms = lib.platforms.linux;
+  };
+})
default.nix
@@ -21,6 +21,8 @@ in rec {
 
   artalk = selfLib.deprecatePackage "artalk" "use the package of the same name from nixpkgs instead" pkgs.artalk;
 
+  cosmic-enroll = callPackage ./pkgs/cosmic-enroll {};
+
   dwproton-bin = selfLib.deprecatePackage "dwproton-bin" "use the package of the same name from nixpkgs instead" pkgs.dwproton-bin;
 
   elio = callPackage ./pkgs/elio {};
README.md
@@ -9,6 +9,7 @@
 
 | Path | Name | Version | License | Description |
 | --- | --- | --- | --- | --- |
+| `cosmic-enroll` | [cosmic-enroll](https://github.com/cosmic-utils/enroll) | `1.2.6` | [MPL-2.0](https://spdx.org/licenses/MPL-2.0.html) | COSMIC GUI for enrolling fingerprints with fprintd |
 | `elio` | [elio](https://github.com/elio-fm/elio) | `1.12.0` | [MIT](https://spdx.org/licenses/MIT.html) | Snappy, batteries-included terminal file manager with rich previews, inline images, bulk actions, and trash support |
 | `flyline` | [flyline](https://github.com/HalFrgrd/flyline) | `1.8.0` | [GPL-3.0-only](https://spdx.org/licenses/GPL-3.0-only.html) | Bash plugin to replace readline for a modern line editing experience |
 | `gitmal` | [gitmal](https://github.com/antonmedv/gitmal) | `1.0.2` | [MIT](https://spdx.org/licenses/MIT.html) |  A static page generator for repos |