Skip to content

Commit

Permalink
addpkg: aosc-scriptlets
Browse files Browse the repository at this point in the history
  • Loading branch information
A1ca7raz committed Jul 21, 2024
1 parent 02f5174 commit 48c7e44
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 1 deletion.
1 change: 0 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
rust-overlay = {
url = "github:oxalica/rust-overlay";
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-utils.follows = "flake-utils";
};

# Packages from other flakes
Expand Down
4 changes: 4 additions & 0 deletions nvfetcher.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
[aosc-scriptlets]
src.git = "https://github.com/AOSC-Dev/scriptlets"
fetch.git = "https://github.com/AOSC-Dev/scriptlets"

[applet-window-appmenu]
src.github = "psifidotos/applet-window-appmenu"
fetch.github = "psifidotos/applet-window-appmenu"
Expand Down
19 changes: 19 additions & 0 deletions pkgs/_sources/generated.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,23 @@
{
"aosc-scriptlets": {
"cargoLocks": null,
"date": "2024-07-17",
"extract": null,
"name": "aosc-scriptlets",
"passthru": null,
"pinned": false,
"src": {
"deepClone": false,
"fetchSubmodules": false,
"leaveDotGit": false,
"name": null,
"rev": "816c1009243e34a6282e1c7c8d09d48d5945e0e3",
"sha256": "sha256-wWd4IGUgkCrBZvOxVyOYSDEQF5r2dLh80bSoH3bskuQ=",
"type": "git",
"url": "https://github.com/AOSC-Dev/scriptlets"
},
"version": "816c1009243e34a6282e1c7c8d09d48d5945e0e3"
},
"applet-window-appmenu": {
"cargoLocks": null,
"date": null,
Expand Down
13 changes: 13 additions & 0 deletions pkgs/_sources/generated.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
# This file was generated by nvfetcher, please do not modify it manually.
{ fetchgit, fetchurl, fetchFromGitHub, dockerTools }:
{
aosc-scriptlets = {
pname = "aosc-scriptlets";
version = "816c1009243e34a6282e1c7c8d09d48d5945e0e3";
src = fetchgit {
url = "https://github.com/AOSC-Dev/scriptlets";
rev = "816c1009243e34a6282e1c7c8d09d48d5945e0e3";
fetchSubmodules = false;
deepClone = false;
leaveDotGit = false;
sha256 = "sha256-wWd4IGUgkCrBZvOxVyOYSDEQF5r2dLh80bSoH3bskuQ=";
};
date = "2024-07-17";
};
applet-window-appmenu = {
pname = "applet-window-appmenu";
version = "v0.8.0";
Expand Down
24 changes: 24 additions & 0 deletions pkgs/uncategorized/aosc-scriptlets/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
source,
lib,
stdenv,
pkg-config,
installShellFiles,
python3
}:
stdenv.mkDerivation {
inherit (source) pname version src;

nativeBuildInputs = [ installShellFiles pkg-config ];

buildInputs = [ python3 ];

installPhase = ''
install -D $src/pushpkg/pushpkg $out/bin/pushpkg
# Install completions
installShellCompletion --cmd pushpkg \
--bash $src/pushpkg/completions/pushpkg.bash \
--fish $src/pushpkg/completions/pushpkg.fish
'';
}

0 comments on commit 48c7e44

Please sign in to comment.