2022-08-27 00:48:43 +03:00
|
|
|
{
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
|
|
utils.url = "github:numtide/flake-utils";
|
|
|
|
};
|
|
|
|
|
2023-08-23 00:27:55 +03:00
|
|
|
outputs = { self, nixpkgs, utils, ... }:
|
2022-08-27 00:48:43 +03:00
|
|
|
utils.lib.eachDefaultSystem (system:
|
|
|
|
let
|
|
|
|
pkgs = import nixpkgs {
|
|
|
|
inherit system;
|
|
|
|
};
|
|
|
|
nixos-appstream-data = pkgs.fetchFromGitHub {
|
|
|
|
owner = "vlinkz";
|
|
|
|
repo = "nixos-appstream-data";
|
|
|
|
rev = "66b3399e6d81017c10265611a151d1109ff1af1b";
|
|
|
|
hash = "sha256-oiEZD4sMpb2djxReg99GUo0RHWAehxSyQBbiz8Z4DJk=";
|
|
|
|
};
|
|
|
|
in
|
|
|
|
rec
|
|
|
|
{
|
2023-02-24 22:33:25 +03:00
|
|
|
packages = let
|
|
|
|
nix-software-center = pkgs.callPackage ./default.nix {};
|
|
|
|
in {
|
|
|
|
inherit nix-software-center;
|
|
|
|
default = nix-software-center;
|
2022-08-27 00:48:43 +03:00
|
|
|
};
|
|
|
|
|
2023-01-17 21:23:49 +03:00
|
|
|
checks = self.packages.${system};
|
|
|
|
hydraJobs = self.packages.${system};
|
|
|
|
|
2022-08-27 00:48:43 +03:00
|
|
|
devShell = pkgs.mkShell {
|
|
|
|
buildInputs = with pkgs; [
|
|
|
|
cargo
|
|
|
|
clippy
|
2022-09-01 06:56:44 +03:00
|
|
|
desktop-file-utils
|
2022-08-27 00:48:43 +03:00
|
|
|
rust-analyzer
|
|
|
|
rustc
|
|
|
|
rustfmt
|
|
|
|
cairo
|
|
|
|
gdk-pixbuf
|
|
|
|
gobject-introspection
|
|
|
|
graphene
|
|
|
|
gtk4
|
|
|
|
gtksourceview5
|
2022-10-27 04:59:58 +03:00
|
|
|
libadwaita
|
2022-10-28 02:19:24 +03:00
|
|
|
libxml2
|
2022-09-01 06:56:44 +03:00
|
|
|
meson
|
|
|
|
ninja
|
2022-08-27 00:48:43 +03:00
|
|
|
openssl
|
|
|
|
pandoc
|
|
|
|
pango
|
2022-09-29 10:20:04 +03:00
|
|
|
pkg-config
|
2022-09-01 06:56:44 +03:00
|
|
|
polkit
|
2022-11-01 21:27:22 +03:00
|
|
|
sqlite
|
2022-08-27 00:48:43 +03:00
|
|
|
wrapGAppsHook4
|
|
|
|
nixos-appstream-data
|
|
|
|
];
|
|
|
|
RUST_SRC_PATH = "${pkgs.rust.packages.stable.rustPlatform.rustLibSrc}";
|
|
|
|
};
|
2023-08-23 00:27:55 +03:00
|
|
|
})
|
|
|
|
// {
|
|
|
|
overlays = {
|
2023-08-23 00:32:41 +03:00
|
|
|
pkgs = final: prev: {
|
2023-08-23 00:27:55 +03:00
|
|
|
nix-software-center = self.packages.${final.system}.nix-software-center;
|
|
|
|
};
|
2023-08-23 00:32:41 +03:00
|
|
|
nixSoftwareCenterPkgs = final: prev: {
|
2023-08-23 00:27:55 +03:00
|
|
|
nixSoftwareCenterPkgs = self.packages.${prev.system};
|
|
|
|
};
|
2023-08-23 00:32:41 +03:00
|
|
|
default = self.overlays.nixSoftwareCenterPkgs;
|
2023-08-23 00:27:55 +03:00
|
|
|
};
|
2023-08-23 00:32:41 +03:00
|
|
|
overlay = self.overlays.pkgs;
|
2023-08-23 00:27:55 +03:00
|
|
|
};
|
2022-08-27 00:48:43 +03:00
|
|
|
}
|