pkgs: ship gst-device-monitor binary
This commit is contained in:
@@ -58,6 +58,7 @@
|
|||||||
./go2tv.nix
|
./go2tv.nix
|
||||||
./gpodder.nix
|
./gpodder.nix
|
||||||
./grimshot.nix
|
./grimshot.nix
|
||||||
|
./gst-device-monitor.nix
|
||||||
./gthumb.nix
|
./gthumb.nix
|
||||||
./gvfs.nix
|
./gvfs.nix
|
||||||
./handbrake.nix
|
./handbrake.nix
|
||||||
|
6
hosts/common/programs/gst-device-monitor.nix
Normal file
6
hosts/common/programs/gst-device-monitor.nix
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
|
sane.programs.gst-device-monitor = {
|
||||||
|
packageUnwrapped = pkgs.linkIntoOwnPackage pkgs.gst_all_1.gst-plugins-base [ "bin/gst-device-monitor-1.0" "man/man1/gst-device-monitor-1.0.1.gz" ];
|
||||||
|
};
|
||||||
|
}
|
@@ -83,6 +83,7 @@ in
|
|||||||
# "gnome.seahorse" # keyring/secret manager
|
# "gnome.seahorse" # keyring/secret manager
|
||||||
"gnome-frog" # OCR/QR decoder
|
"gnome-frog" # OCR/QR decoder
|
||||||
"gpodder"
|
"gpodder"
|
||||||
|
"gst-device-monitor" # for debugging audio/video
|
||||||
# "gthumb"
|
# "gthumb"
|
||||||
# "lemoa" # lemmy app
|
# "lemoa" # lemmy app
|
||||||
"libnotify" # for notify-send; debugging
|
"libnotify" # for notify-send; debugging
|
||||||
|
@@ -1,4 +1,5 @@
|
|||||||
{ runCommandLocal
|
{ lib
|
||||||
|
, runCommandLocal
|
||||||
, rmDbusServicesInPlace
|
, rmDbusServicesInPlace
|
||||||
, symlinkJoin
|
, symlinkJoin
|
||||||
}:
|
}:
|
||||||
@@ -7,23 +8,29 @@
|
|||||||
# its own package, but otherwise keeping the same path.
|
# its own package, but otherwise keeping the same path.
|
||||||
# this is done by copying the bits, so as to avoid including the item's neighbors
|
# this is done by copying the bits, so as to avoid including the item's neighbors
|
||||||
# in its runtime closure.
|
# in its runtime closure.
|
||||||
copyIntoOwnPackage = pkg: path: runCommandLocal "${pkg.pname or pkg.name}-${path}" {
|
copyIntoOwnPackage = pkg: path: let
|
||||||
env.item = path;
|
paths = if lib.isList path then path else [ path ];
|
||||||
env.fromPkg = pkg;
|
suffix = (lib.head paths) + (if paths != [ path ] then "-and-other-paths" else "");
|
||||||
} ''
|
in
|
||||||
mkdir -p "$out/$(dirname "$item")"
|
runCommandLocal "${pkg.pname or pkg.name}-${suffix}" { } ''
|
||||||
cp -a "$fromPkg/$item" "$out/$item"
|
for item in ${lib.escapeShellArgs paths}; do
|
||||||
runHook postFixup
|
mkdir -p "$out/$(dirname $item)"
|
||||||
'';
|
cp -a "${pkg}/$item" "$out/$item"
|
||||||
|
done
|
||||||
|
runHook postFixup
|
||||||
|
'';
|
||||||
|
|
||||||
linkIntoOwnPackage = pkg: path: runCommandLocal "${pkg.pname or pkg.name}-${path}" {
|
linkIntoOwnPackage = pkg: path: let
|
||||||
env.item = path;
|
paths = if lib.isList path then path else [ path ];
|
||||||
env.fromPkg = pkg;
|
suffix = (lib.head paths) + (if paths != [ path ] then "-and-other-paths" else "");
|
||||||
} ''
|
in
|
||||||
mkdir -p "$out/$(dirname "$item")"
|
runCommandLocal "${pkg.pname or pkg.name}-${suffix}" { } ''
|
||||||
ln -s "$fromPkg/$item" "$out/$item"
|
for item in ${lib.escapeShellArgs paths}; do
|
||||||
runHook postFixup
|
mkdir -p "$out/$(dirname $item)"
|
||||||
'';
|
ln -s "${pkg}/$item" "$out/$item"
|
||||||
|
done
|
||||||
|
runHook postFixup
|
||||||
|
'';
|
||||||
|
|
||||||
# given some package, create a new package which symlinks every file of the original
|
# given some package, create a new package which symlinks every file of the original
|
||||||
# *except* for its dbus files.
|
# *except* for its dbus files.
|
||||||
|
Reference in New Issue
Block a user