mirror of
https://github.com/quantum5/win2xcur.git
synced 2025-04-24 10:11:57 -04:00
44 lines
1.2 KiB
Nix
44 lines
1.2 KiB
Nix
|
{
|
||
|
description = "win2xcur is a tool to convert Windows .cur and .ani cursors to Xcursor format.";
|
||
|
inputs = {
|
||
|
makes.url = "github:fluidattacks/makes";
|
||
|
nixpkgs.url = "github:nixos/nixpkgs";
|
||
|
nix_filter.url = "github:numtide/nix-filter";
|
||
|
};
|
||
|
outputs = {
|
||
|
self,
|
||
|
nixpkgs,
|
||
|
nix_filter,
|
||
|
makes,
|
||
|
}: let
|
||
|
path_filter = nix_filter.outputs.lib;
|
||
|
src = import ./build_pkg/filter.nix path_filter self;
|
||
|
out = system: python_version: let
|
||
|
makesLib = makes.lib."${system}";
|
||
|
pkgs = nixpkgs.legacyPackages."${system}";
|
||
|
in
|
||
|
import ./build_pkg {
|
||
|
inherit src python_version makesLib;
|
||
|
nixpkgs = pkgs;
|
||
|
};
|
||
|
supported = ["python39" "python310" "python311"];
|
||
|
python_outs = system:
|
||
|
(builtins.listToAttrs (map (name: {
|
||
|
inherit name;
|
||
|
value = out system name;
|
||
|
})
|
||
|
supported))
|
||
|
// {build_with_python = out system; nixpkgs = nixpkgs.legacyPackages."${system}";};
|
||
|
systems = [
|
||
|
"aarch64-darwin"
|
||
|
"aarch64-linux"
|
||
|
"x86_64-darwin"
|
||
|
"x86_64-linux"
|
||
|
];
|
||
|
forAllSystems = nixpkgs.lib.genAttrs systems;
|
||
|
in {
|
||
|
packages = forAllSystems python_outs;
|
||
|
defaultPackage = self.packages;
|
||
|
};
|
||
|
}
|