mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-27 18:46:13 +01:00
34 lines
902 B
Nix
34 lines
902 B
Nix
{
|
|
inputs = {
|
|
sss-cli = {
|
|
flake = false;
|
|
url = "github:dsprenkels/sss-cli";
|
|
};
|
|
};
|
|
|
|
outputs = { self, nixpkgs, sss-cli, ... }@inputs:
|
|
let
|
|
supportedSystems = [ "x86_64-linux" "i686-linux" "aarch64-linux" ];
|
|
forAllSystems = f: nixpkgs.lib.genAttrs supportedSystems (system: f system);
|
|
in {
|
|
overlay = system: final: prev:
|
|
let
|
|
pkgs = import nixpkgs { inherit system; };
|
|
in
|
|
with final; {
|
|
sss-cli = pkgs.rustPlatform.buildRustPackage {
|
|
pname = "sss-cli";
|
|
|
|
version = "0.1.0";
|
|
cargoSha256 = "sha256-ekoeNLDkTtVcBHKcqndEIOtz5jEAXu8cYVbdar5X288=";
|
|
src = sss-cli;
|
|
};
|
|
};
|
|
|
|
defaultPackage = forAllSystems (system: (import nixpkgs {
|
|
inherit system;
|
|
overlays = [ (self.overlay system) ];
|
|
}).sss-cli);
|
|
};
|
|
}
|