first commit
This commit is contained in:
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
result
|
||||
result-*
|
||||
|
||||
27
flake.lock
generated
Normal file
27
flake.lock
generated
Normal file
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"nodes": {
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1763966396,
|
||||
"narHash": "sha256-6eeL1YPcY1MV3DDStIDIdy/zZCDKgHdkCmsrLJFiZf0=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "5ae3b07d8d6527c42f17c876e404993199144b6a",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "NixOS",
|
||||
"ref": "nixos-unstable",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"root": {
|
||||
"inputs": {
|
||||
"nixpkgs": "nixpkgs"
|
||||
}
|
||||
}
|
||||
},
|
||||
"root": "root",
|
||||
"version": 7
|
||||
}
|
||||
18
flake.nix
Normal file
18
flake.nix
Normal file
@@ -0,0 +1,18 @@
|
||||
{
|
||||
description = "Мой flake с пакетами";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs }: let
|
||||
system = "x86_64-linux";
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
in {
|
||||
packages.${system} = {
|
||||
jellyfin-chromium = import ./pkgs/jellyfin-chromium {
|
||||
inherit (pkgs) stdenv makeWrapper bash chromium lib;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
17
pkgs/jellyfin-chromium/default.nix
Normal file
17
pkgs/jellyfin-chromium/default.nix
Normal file
@@ -0,0 +1,17 @@
|
||||
{ stdenv, makeWrapper, bash, chromium, lib }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "jellyfin-chromium";
|
||||
version = "1.0";
|
||||
|
||||
src = ./.;
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
|
||||
makeWrapper ${./run.sh} $out/bin/$pname \
|
||||
--set PATH ${lib.makeBinPath [ bash chromium ]}
|
||||
'';
|
||||
}
|
||||
3
pkgs/jellyfin-chromium/run.sh
Executable file
3
pkgs/jellyfin-chromium/run.sh
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
chromium --app="$JELLYFIN_HOST_URL" --password-store=basic --disable-features=UseChromeOSDirectPrint --no-first-run --disable-translate --disable-infobars
|
||||
Reference in New Issue
Block a user