add discover

This commit is contained in:
LavaDesu 2021-07-18 14:10:58 +07:00
parent f83b5bd0f9
commit 0e608a0fdf
Signed by: cilly
GPG key ID: 6500251E087653C9
4 changed files with 49 additions and 1 deletions

17
flake.lock generated
View file

@ -1,5 +1,21 @@
{
"nodes": {
"discover": {
"flake": false,
"locked": {
"lastModified": 1619462451,
"narHash": "sha256-QR/Z0YGp1SLQTGUgL7NPWw2Sn4z9sYQeGqiTKyr6jV4=",
"owner": "trigg",
"repo": "Discover",
"rev": "4d917d30c8593f048423e834aa46121c59f635de",
"type": "github"
},
"original": {
"owner": "trigg",
"repo": "Discover",
"type": "github"
}
},
"fast-syntax-highlighting": {
"flake": false,
"locked": {
@ -145,6 +161,7 @@
},
"root": {
"inputs": {
"discover": "discover",
"fast-syntax-highlighting": "fast-syntax-highlighting",
"home-manager": "home-manager",
"neovim-nightly": "neovim-nightly",

View file

@ -13,6 +13,9 @@
zsh-history-substring-search = { url = "github:zsh-users/zsh-history-substring-search"; flake = false; };
fast-syntax-highlighting = { url = "github:zdharma/fast-syntax-highlighting"; flake = false; };
pure = { url = "github:sindresorhus/pure"; flake = false; };
# overlays
discover = { url = "github:trigg/Discover"; flake = false; };
};
outputs = { self, nixpkgs, home-manager, secrets, ... } @ inputs:
@ -47,11 +50,12 @@
let
callPackage = pkgs.callPackage;
in {
discover-overlay = callPackage ./packages/discover {};
linux-lava = callPackage ./packages/linux-lava {};
wine-osu = callPackage ./packages/wine-osu { inherit getPaths; };
};
overlays = (builtins.map
overlays = [ (self: super: { inherit inputs; }) ] ++ (builtins.map
(path: import path) # Imports path
(builtins.filter
(path: lib.hasSuffix ".nix" path) # Checks file extension

View file

@ -16,6 +16,7 @@
] ++ lib.optionals enableGUI [
brave
discord-canary
discover-overlay
element-desktop
feh
gnome.file-roller

View file

@ -0,0 +1,26 @@
{ inputs
, python3Packages
, gtk3
, gobject-introspection
, wrapGAppsHook
, ...
}:
python3Packages.buildPythonApplication {
pname = "discover-overlay";
version = "1.0";
src = inputs.discover;
nativeBuildInputs = [
wrapGAppsHook
];
propagatedBuildInputs = with python3Packages; [
gtk3
gobject-introspection
pygobject3
websocket-client
pyxdg
requests
python-pidfile
pillow
];
}