mirror of
https://github.com/nix-community/comma.git
synced 2024-10-26 05:58:05 +03:00
54149dc417
* compatibility to flake based systems - add flake.nix - provide interface for updating the index * pin nix to version 2.3 * Update , Co-authored-by: Artturi <Artturin@artturin.com> * remove db outdated error Co-authored-by: Artturi <Artturin@artturin.com>
37 lines
874 B
Nix
37 lines
874 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 = [ "x86_64-linux" "x86_64-darwin" ];
|
|
forAllSystems = f: lib.genAttrs supportedSystems
|
|
(system: f system (import nixpkgs { inherit system; }));
|
|
in
|
|
rec {
|
|
|
|
packages = forAllSystems
|
|
(system: pkgs: {
|
|
comma = import ./default.nix {
|
|
inherit pkgs;
|
|
updateScript = apps."${system}".update-index.program;
|
|
};
|
|
});
|
|
|
|
defaultPackage = forAllSystems (system: pkgs: packages."${system}".comma);
|
|
|
|
apps = forAllSystems
|
|
(system: pkgs: {
|
|
update-index = {
|
|
type = "app";
|
|
program = b.toString (pkgs.callPackage ./update-index.nix {});
|
|
};
|
|
});
|
|
};
|
|
}
|