Compare commits
1 Commits
gitea-acti
...
a6c7ddbb34
Author | SHA1 | Date | |
---|---|---|---|
a6c7ddbb34
|
@ -14,11 +14,8 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: https://gitea.com/actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
- name: Install nix
|
- uses: cachix/install-nix-action@v23
|
||||||
uses: https://github.com/cachix/install-nix-action@v23
|
|
||||||
with:
|
|
||||||
github_access_token: ${{ secrets.INPUT_GITHUB_ACCESS_TOKEN }}
|
|
||||||
- name: Check ${{ matrix.check }}
|
- name: Check ${{ matrix.check }}
|
||||||
# Depends on nixos/nix#7759 to simply `nix flake check`
|
# Depends on nixos/nix#7759 to simply `nix flake check`
|
||||||
run: nix run .#checks.$(nix eval --raw --impure --expr "builtins.currentSystem").${{ matrix.check }}
|
run: nix run .#checks.$(nix eval --raw --impure --expr "builtins.currentSystem").${{ matrix.check }}
|
||||||
@ -46,13 +43,13 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: https://gitea.com/actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
- name: Install nix
|
- name: Install nix
|
||||||
uses: https://github.com/cachix/install-nix-action@v23
|
uses: cachix/install-nix-action@v23
|
||||||
- name: Show nixpkgs version
|
- name: Show nixpkgs version
|
||||||
run: nix eval --impure --expr '(import ./flake-compat.nix { src = ./.; }).lib.version'
|
run: nix eval --impure --expr '(import ./flake-compat.nix { src = ./.; }).lib.version'
|
||||||
- name: Setup cachix
|
- name: Setup cachix
|
||||||
uses: https://github.com/cachix/cachix-action@v12
|
uses: cachix/cachix-action@v12
|
||||||
if: ${{ matrix.cachixName != '<YOUR_CACHIX_NAME>' }}
|
if: ${{ matrix.cachixName != '<YOUR_CACHIX_NAME>' }}
|
||||||
with:
|
with:
|
||||||
name: ${{ matrix.cachixName }}
|
name: ${{ matrix.cachixName }}
|
35
pkgs/by-name/ge/gersemi/package.nix
Normal file
35
pkgs/by-name/ge/gersemi/package.nix
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
{ lib
|
||||||
|
, python3
|
||||||
|
, fetchPypi
|
||||||
|
}:
|
||||||
|
|
||||||
|
python3.pkgs.buildPythonApplication rec {
|
||||||
|
pname = "gersemi";
|
||||||
|
version = "0.10.0";
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
hash = "sha256-Gd3wZNbBIYo2i0n1DlyHg3s5c+BBJ0nppMw8IVcfKUM=";
|
||||||
|
};
|
||||||
|
|
||||||
|
# Remove dataclasses backport requirement since it doesn't work on newer
|
||||||
|
# Python.
|
||||||
|
patchPhase = ''
|
||||||
|
sed -i '/dataclasses/d' setup.py
|
||||||
|
'';
|
||||||
|
|
||||||
|
propagatedBuildInputs = with python3.pkgs; [
|
||||||
|
appdirs
|
||||||
|
colorama
|
||||||
|
lark
|
||||||
|
pyyaml
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "A formatter to make your CMake code the real treasure";
|
||||||
|
homepage = "https://github.com/BlankSpruce/gersemi";
|
||||||
|
license = lib.licenses.mpl20;
|
||||||
|
platforms = python3.meta.platforms;
|
||||||
|
};
|
||||||
|
}
|
Reference in New Issue
Block a user