1
Fork 0

Compare commits

...

2 Commits

Author SHA1 Message Date
Bauke 685281dbc4
Update links to GitHub. 2024-03-01 14:31:06 +01:00
Bauke 29c6f96173
Add a Nix flake to build the CLI. 2024-03-01 14:26:47 +01:00
6 changed files with 31 additions and 24 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
/result
.direnv/
coverage/
debug/

View File

@ -1,7 +1,7 @@
[package]
name = "steam-rss"
description = "Get RSS feeds for Steam games."
repository = "https://git.bauke.xyz/Bauke/steam-rss"
repository = "https://github.com/Bauke/steam-rss"
license = "AGPL-3.0-or-later"
version = "0.2.2"
authors = ["Bauke <me@bauke.xyz>"]

View File

@ -19,10 +19,6 @@ With a working [Rust and Cargo](https://www.rust-lang.org/learn/get-started) ins
cargo install steam-rss
```
### Binaries
Precompiled `x86_64-unknown-linux-gnu` binaries are available on the [Releases page](https://git.bauke.xyz/Bauke/steam-rss/releases).
## Usage
```
@ -49,4 +45,4 @@ Found a problem or want to request a new feature? Email [me@bauke.xyz](mailto:me
## License
Distributed under the [AGPL-3.0-or-later](https://spdx.org/licenses/AGPL-3.0-or-later.html) license, see [LICENSE](https://git.bauke.xyz/Bauke/steam-rss/src/branch/main/LICENSE) for more information.
Distributed under the [AGPL-3.0-or-later](https://spdx.org/licenses/AGPL-3.0-or-later.html) license, see [LICENSE](https://github.com/Bauke/steam-rss/blob/main/LICENSE) for more information.

17
default.nix Normal file
View File

@ -0,0 +1,17 @@
{ lib, rustPlatform }:
rustPlatform.buildRustPackage rec {
pname = "steam-rss";
version = "0.2.2";
src = ./.;
cargoLock.lockFile = ./Cargo.lock;
meta = with lib; {
description = "Get RSS feeds for Steam games";
homepage = "https://github.com/Bauke/steam-rss";
changelog = "https://github.com/Bauke/steam-rss/releases/tag/${version}";
license = with licenses; [ agpl3Plus ];
maintainers = with maintainers; [ Bauke ];
mainProgram = "steam-rss";
};
}

View File

@ -4,14 +4,22 @@
rust-overlay.url = "github:oxalica/rust-overlay";
};
outputs = { self, nixpkgs, flake-utils, rust-overlay }:
flake-utils.lib.eachDefaultSystem (system:
outputs =
{
self,
nixpkgs,
flake-utils,
rust-overlay,
}:
flake-utils.lib.eachDefaultSystem (
system:
let
overlays = [ (import rust-overlay) ];
pkgs = import nixpkgs { inherit system overlays; };
in
{
devShells.default = import ./shell.nix { inherit pkgs; };
packages.default = pkgs.callPackage ./. { };
}
);
}

View File

@ -1,18 +1,3 @@
// Copyright (C) 2022 Bauke <me@bauke.xyz>
//
// This program is free software: you can redistribute it and/or modify it under
// the terms of the GNU Affero General Public License as published by the Free
// Software Foundation, either version 3 of the License, or (at your option) any
// later version.
//
// This program is distributed in the hope that it will be useful, but WITHOUT
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
// FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
// details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
//! # Steam RSS
//!
//! > **Get RSS feeds for Steam games.**
@ -100,7 +85,7 @@ fn main() -> Result<()> {
let timeout = Duration::from_millis(args.timeout);
let ureq_agent = ureq::AgentBuilder::new()
.user_agent("Steam Feeds (https://git.bauke.xyz/Bauke/steam-rss)")
.user_agent("Steam Feeds (https://github.com/Bauke/steam-rss)")
.build();
let mut potential_feeds = vec![];
let mut feeds_to_output = vec![];