wastebin is a pastebin ๐ bin.bloerg.net
pastebin
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556{ description = "Wastebin is a pastebin";
# Nixpkgs / NixOS version to use. # inputs.nixpkgs.url = "nixpkgs/nixos-21.11";
outputs = { self, nixpkgs }: let
# System types to support. supportedSystems = [ "x86_64-linux" "x86_64-darwin" "aarch64-linux" "aarch64-darwin" ];
# Helper function to generate an attrset '{ x86_64-linux = f "x86_64-linux"; ... }'. forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
# Nixpkgs instantiated for supported system types. nixpkgsFor = forAllSystems (system: import nixpkgs { inherit system; });
in {
# Provide some binary packages for selected system types. packages = forAllSystems (system: let pkgs = nixpkgsFor.${system}; in { wastebin = with pkgs; rustPlatform.buildRustPackage rec { pname = "wastebin"; version = "3.2.0";
src = ./.;
cargoLock.lockFile = ./Cargo.lock;
nativeBuildInputs = [ pkg-config ];
buildInputs = [ sqlite zstd ];
env.ZSTD_SYS_USE_PKG_CONFIG = true;
meta = with lib; { description = "Wastebin is a pastebin"; homepage = "https://github.com/matze/wastebin"; changelog = "https://github.com/matze/wastebin/blob/${src.rev}/CHANGELOG.md"; license = licenses.mit; maintainers = with maintainers; [ pinpox ]; mainProgram = "wastebin"; }; }; });
defaultPackage = forAllSystems (system: self.packages.${system}.wastebin); };}