Files
nix-packaging/flake.nix

35 lines
802 B
Nix

{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
};
outputs =
{
self,
nixpkgs,
}:
let
system = "x86_64-linux"; # Adjust if necessary
pkgs = import nixpkgs {
inherit system;
};
in
{
packages.${system} = {
wasm-bindgen-cli_0_2_101 = pkgs.callPackage ./wasm-bindgen-cli.nix { };
threema-desktop = pkgs.callPackage ./threema-desktop.nix {
wasm-bindgen-cli = self.packages.${system}.wasm-bindgen-cli_0_2_101;
};
};
devShells.${system} = {
default = pkgs.mkShell {
name = "packaging";
venvDir = "./.venv";
buildInputs = [ pkgs.python313Packages.pip ] ++ builtins.attrValues self.packages.${system};
};
};
};
}