mirror of
https://github.com/nix-community/comma.git
synced 2024-09-11 12:05:28 +03:00
cd0f4852ea
it increases the closure size and limits the system we support in the future we can implement this better in the script
29 lines
612 B
Nix
29 lines
612 B
Nix
{
|
|
description = "Comma runs software without installing it";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "nixpkgs/nixos-unstable";
|
|
};
|
|
|
|
outputs = { self, nixpkgs, }:
|
|
let
|
|
b = builtins;
|
|
lib = nixpkgs.lib;
|
|
supportedSystems = lib.systems.supported.hydra;
|
|
forAllSystems = f: lib.genAttrs supportedSystems
|
|
(system: f system (import nixpkgs { inherit system; }));
|
|
in
|
|
rec {
|
|
|
|
packages = forAllSystems
|
|
(system: pkgs: {
|
|
comma = import ./default.nix {
|
|
inherit pkgs;
|
|
};
|
|
});
|
|
|
|
defaultPackage = forAllSystems (system: pkgs: packages."${system}".comma);
|
|
|
|
};
|
|
}
|