Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,25 @@ jobs:
ebuild /var/db/repos/localrepo/app-misc/psn/psn-9999.ebuild manifest
FEATURES="-ipc-sandbox -network-sandbox -pid-sandbox -mount-sandbox -usersandbox -userpriv" \
emerge -pv =app-misc/psn-9999

nix:
runs-on: ubuntu-latest
container:
image: nixos/nix:2.34.0

steps:
- name: Enable flakes
run: |
mkdir -p /etc/nix
echo "experimental-features = nix-command flakes" >> /etc/nix/nix.conf

- name: Clone repository
run: |
git init /psn
git -C /psn fetch --depth 1 "https://github.com/${GITHUB_REPOSITORY}.git" "${GITHUB_REF}"
git -C /psn checkout FETCH_HEAD

- name: Build nix flake
run: |
cd /psn
nix build . --option sandbox false --print-build-logs
File renamed without changes.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
[![Codecov](https://codecov.io/gh/l5yth/psn/graph/badge.svg)](https://codecov.io/gh/l5yth/psn)
[![GitHub Release](https://img.shields.io/github/v/release/l5yth/psn)](https://github.com/l5yth/psn/releases)
[![Crates.io](https://img.shields.io/crates/v/psn.svg)](https://crates.io/crates/psn)
[![AUR Version](https://img.shields.io/aur/version/psn-bin?logo=archlinux)](https://aur.archlinux.org/packages/psn-bin)
[![Nix Flake](https://img.shields.io/badge/nix-flake-5277C3?logo=nixos)](https://github.com/l5yth/psn/blob/main/flake.nix)
[![Gentoo](https://img.shields.io/badge/gentoo-ebuild-54487A?logo=gentoo)](https://github.com/l5yth/psn/tree/main/packaging/gentoo)
[![Top Language](https://img.shields.io/github/languages/top/l5yth/psn)](https://github.com/l5yth/psn)
[![License: Apache-2.0](https://img.shields.io/github/license/l5yth/psn)](https://github.com/l5yth/psn/blob/main/LICENSE)

Expand Down
61 changes: 61 additions & 0 deletions flake.lock

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

19 changes: 19 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Copyright (c) 2026 l5yth
# SPDX-License-Identifier: Apache-2.0
{
description = "Terminal UI for process status navigation and control";

inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};

outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
in {
packages.default = pkgs.callPackage ./packaging/nix {};
}
);
}
20 changes: 20 additions & 0 deletions packaging/nix/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Copyright (c) 2026 l5yth
# SPDX-License-Identifier: Apache-2.0
{ lib, rustPlatform }:

rustPlatform.buildRustPackage {
pname = "psn";
version = "0.1.2";

src = lib.cleanSource ../..;

cargoLock.lockFile = ../../Cargo.lock;

meta = with lib; {
description = "Terminal UI for process status navigation and control";
homepage = "https://github.com/l5yth/psn";
license = licenses.asl20;
mainProgram = "psn";
platforms = platforms.linux;
};
}