# mostly lifted from https://github.com/xddxdd/nur-packages, converted into a standalone flake { description = "A terminal client for *sonic music servers. Inspired by ncmpcpp."; inputs = { stmp-src = { url = sourcehut:~ser/stmp; flake = false; }; }; outputs = { self , stmp-src , nixpkgs }: let supportedSystems = [ "x86_64-linux" ]; forAllSystems = nixpkgs.lib.genAttrs supportedSystems; nixpkgsFor = forAllSystems (system: import nixpkgs { inherit system; overlays = [ self.overlays.default ]; }); in { overlays.default = final: prev: { stmp = final.buildGoModule { vendorHash = "sha256-53Oat/48PtOXtITxU5j1VmHy0vCB6UzyqjDzkfZFrYI="; pname = "stmp"; version = "master"; src = stmp-src; buildInputs = [ final.mpv final.pkg-config final.libGL.dev final.xorg.libX11 ]; CGO_ENABLED = 1; }; }; packages = forAllSystems (system: { inherit (nixpkgsFor."${system}") stmp; }); defaultPackage = forAllSystems (system: self.packages."${system}".stmp); }; }