Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Samasaur1 committed Jul 26, 2023
0 parents commit 5e112fa
Show file tree
Hide file tree
Showing 7 changed files with 87 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
@@ -0,0 +1,2 @@
/target
result
7 changes: 7 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Cargo.toml
@@ -0,0 +1,8 @@
[package]
name = "jekyll-comments"
version = "0.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
27 changes: 27 additions & 0 deletions default.nix
@@ -0,0 +1,27 @@
{ lib, rustPlatform, stdenv, darwin }:

let cargoToml = (builtins.fromTOML (builtins.readFile ./Cargo.toml)).package;

in rustPlatform.buildRustPackage rec {
pname = (builtins.fromTOML (builtins.readFile ./Cargo.toml)).package.name;
version =
(builtins.fromTOML (builtins.readFile ./Cargo.toml)).package.version;

src = ./.;

cargoHash = "sha256-VlEamDg5c1Hc03z5/7YWekY23ufkWCgyeOfAOtYjuFY=";

buildInputs = [ ] ++ lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.IOKit
darwin.apple_sdk.frameworks.Security
];

env = { VERGEN_IDEMPOTENT = true; };

meta = with lib; {
description = "The server-side software for Remote Text";
homepage = "https://github.com/Remote-Text/remote-text-server";
license = with licenses; [ ];
maintainers = with maintainers; [ ];
};
}
25 changes: 25 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions flake.nix
@@ -0,0 +1,15 @@
{
description = "The server-side software for Remote Text";

outputs = { nixpkgs, ... }:
let
forAllSystems = gen:
nixpkgs.lib.genAttrs nixpkgs.lib.systems.flakeExposed
(system: gen nixpkgs.legacyPackages.${system});
in {
packages = forAllSystems (pkgs: { default = pkgs.callPackage ./. { }; });

formatter = nixpkgs.lib.genAttrs nixpkgs.lib.systems.flakeExposed
(system: nixpkgs.legacyPackages.${system}.nixfmt);
};
}
3 changes: 3 additions & 0 deletions src/main.rs
@@ -0,0 +1,3 @@
fn main() {
println!("Hello, world!");
}

0 comments on commit 5e112fa

Please sign in to comment.