-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d2f4574
commit f9bb4d4
Showing
8 changed files
with
135 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,8 @@ | |
# | ||
# SPDX-License-Identifier: CC0-1.0 | ||
|
||
# Cargo | ||
target/ | ||
|
||
# Nix | ||
result/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,6 @@ Upstream-Name: ReGreet | |
Upstream-Contact: Harish Rajagopal <[email protected]> | ||
Source: https://github.com/rharish101/ReGreet | ||
|
||
Files: Cargo.lock | ||
Files: Cargo.lock flake.lock | ||
Copyright: 2022 Harish Rajagopal <[email protected]> | ||
License: CC0-1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# SPDX-FileCopyrightText: 2024 Harish Rajagopal <[email protected]> | ||
# | ||
# SPDX-License-Identifier: GPL-3.0-or-later | ||
{pkgs ? import <nixpkgs> {}}: let | ||
manifest = (pkgs.lib.importTOML ./Cargo.toml).package; | ||
in | ||
pkgs.rustPlatform.buildRustPackage rec { | ||
pname = manifest.name; | ||
inherit (manifest) version; | ||
cargoLock.lockFile = ./Cargo.lock; | ||
src = pkgs.lib.cleanSource ./.; | ||
|
||
buildFeatures = ["gtk4_8"]; | ||
|
||
nativeBuildInputs = with pkgs; [pkg-config wrapGAppsHook4]; | ||
buildInputs = with pkgs; [glib gtk4 pango librsvg]; | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# SPDX-FileCopyrightText: 2024 Harish Rajagopal <[email protected]> | ||
# | ||
# SPDX-License-Identifier: GPL-3.0-or-later | ||
{ | ||
description = "Dev tooling for ReGreet"; | ||
|
||
inputs = { | ||
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable"; | ||
}; | ||
|
||
outputs = { | ||
self, | ||
nixpkgs, | ||
}: let | ||
supportedSystems = ["x86_64-linux"]; | ||
forAllSystems = nixpkgs.lib.genAttrs supportedSystems; | ||
pkgsFor = nixpkgs.legacyPackages; | ||
in { | ||
formatter = forAllSystems (system: pkgsFor.${system}.alejandra); | ||
|
||
packages = forAllSystems (system: let | ||
pkgs = pkgsFor.${system}; | ||
in rec { | ||
default = regreet; | ||
regreet = pkgs.callPackage ./default.nix {inherit pkgs;}; | ||
}); | ||
|
||
devShells = forAllSystems (system: let | ||
pkgs = pkgsFor.${system}; | ||
in { | ||
default = pkgs.callPackage ./shell.nix {inherit pkgs;}; | ||
|
||
vscode = pkgs.callPackage ./nix/vscode-shell.nix { | ||
pkgs = import nixpkgs { | ||
inherit system; | ||
config.allowUnfree = true; | ||
}; | ||
}; | ||
}); | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# SPDX-FileCopyrightText: 2024 Harish Rajagopal <[email protected]> | ||
# | ||
# SPDX-License-Identifier: GPL-3.0-or-later | ||
{pkgs ? import <nixpkgs> {}}: | ||
pkgs.mkShell { | ||
inputsFrom = [(pkgs.callPackage ../shell.nix {})]; | ||
buildInputs = with pkgs; [ | ||
( | ||
vscode-with-extensions.override { | ||
vscodeExtensions = with vscode-extensions; [ | ||
rust-lang.rust-analyzer | ||
tamasfe.even-better-toml | ||
bbenoist.nix | ||
|
||
vscodevim.vim # you can disable this in extension settings if you want | ||
]; | ||
} | ||
) | ||
]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# SPDX-FileCopyrightText: 2024 Harish Rajagopal <[email protected]> | ||
# | ||
# SPDX-License-Identifier: GPL-3.0-or-later | ||
{pkgs ? import <nixpkgs> {}}: | ||
pkgs.mkShell { | ||
inputsFrom = [(pkgs.callPackage ./default.nix {})]; | ||
buildInputs = with pkgs; [ | ||
rust-analyzer | ||
rustfmt | ||
clippy | ||
|
||
pre-commit | ||
]; | ||
|
||
shellHook = '' | ||
echo "Installing pre commit hooks"; | ||
pre-commit install; | ||
''; | ||
} |