mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 00:52:16 -06:00
This enables compatibility with users who also disable aliases
The utillinux alias was added in 2020[1], which is older than the previous
Nixpkgs pin, which means we can safely switch to the non-aliased version.
1: 3896a0c0e2/pkgs/top-level/aliases.nix (L1967)
32 lines
820 B
Nix
32 lines
820 B
Nix
{
|
|
inputs = {
|
|
nixpkgs.url = "nixpkgs/nixos-25.05";
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
};
|
|
|
|
outputs = { self, nixpkgs, flake-utils }:
|
|
{
|
|
nixosModules.default = ./contrib/nixos/modules/copyparty.nix;
|
|
overlays.default = self: super: {
|
|
copyparty =
|
|
self.python3.pkgs.callPackage ./contrib/package/nix/copyparty {
|
|
ffmpeg = self.ffmpeg-full;
|
|
};
|
|
};
|
|
} // flake-utils.lib.eachDefaultSystem (system:
|
|
let
|
|
pkgs = import nixpkgs {
|
|
inherit system;
|
|
config = {
|
|
allowAliases = false;
|
|
};
|
|
overlays = [ self.overlays.default ];
|
|
};
|
|
in {
|
|
packages = {
|
|
inherit (pkgs) copyparty;
|
|
default = self.packages.${system}.copyparty;
|
|
};
|
|
});
|
|
}
|