Skip to content

Commit

Permalink
update github workflow and flake
Browse files Browse the repository at this point in the history
  • Loading branch information
ryantm committed Jan 1, 2023
1 parent f3f4597 commit da82da1
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 66 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ on:
push:
jobs:
tests:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.4
- uses: cachix/install-nix-action@v15
- uses: cachix/cachix-action@v10
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v18
- uses: cachix/cachix-action@v12
with:
name: nixpkgs-update
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- run: nix-build
- run: nix-shell --run "echo OK"
- run: nix build
- run: nix flake check
16 changes: 0 additions & 16 deletions default.nix

This file was deleted.

42 changes: 12 additions & 30 deletions flake.lock

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

21 changes: 8 additions & 13 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -1,22 +1,17 @@
{
description = "A flake for nixpkgs-update";
description = "update nixpkgs automatically";

inputs.flake-compat = { url = "github:edolstra/flake-compat"; flake = false; };
inputs.nixpkgs = { type = "github"; owner = "nixos"; repo = "nixpkgs"; };
inputs.mmdoc.url = "github:ryantm/mmdoc";
inputs.mmdoc.inputs.nixpkgs.follows = "nixpkgs";

nixConfig.extra-substituters = [ "https://nixpkgs-update.cachix.org" ];
nixConfig.extra-trusted-public-keys = [ "nixpkgs-update.cachix.org-1:6y6Z2JdoL3APdu6/+Iy8eZX2ajf09e4EE9SnxSML1W8=" ];
nixConfig.extra-substituters = "https://nixpkgs-update.cachix.org";
nixConfig.extra-trusted-public-keys = "nixpkgs-update.cachix.org-1:6y6Z2JdoL3APdu6/+Iy8eZX2ajf09e4EE9SnxSML1W8=";

outputs = { self, flake-compat, nixpkgs, mmdoc } @ args:
outputs = { self, nixpkgs, mmdoc } @ args:
{
packages."x86_64-linux" = import ./pkgs/default.nix (args // { system = "x86_64-linux"; });
defaultPackage."x86_64-linux" = self.packages."x86_64-linux".nixpkgs-update;
devShell."x86_64-linux" = self.packages."x86_64-linux".devShell;

packages."x86_64-darwin" = import ./pkgs/default.nix (args // { system = "x86_64-darwin"; });
defaultPackage."x86_64-darwin" = self.packages."x86_64-darwin".nixpkgs-update;
devShell."x86_64-darwin" = self.packages."x86_64-darwin".devShell;
packages.x86_64-linux = import ./pkgs/default.nix (args // { system = "x86_64-linux"; });
devShell.x86_64-linux = self.packages."x86_64-linux".devShell;
packages.x86_64-darwin = import ./pkgs/default.nix (args // { system = "x86_64-darwin"; });
devShell.x86_64-darwin = self.packages."x86_64-darwin".devShell;
};
}
1 change: 1 addition & 0 deletions pkgs/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ let
in
{
nixpkgs-update = haskellPackages.nixpkgs-update;
default = haskellPackages.nixpkgs-update;
nixpkgs-update-doc = doc;
devShell = shell;
}
1 change: 0 additions & 1 deletion shell.nix

This file was deleted.

1 comment on commit da82da1

@nh2
Copy link
Contributor

@nh2 nh2 commented on da82da1 Jul 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The removal of default.nix broke the install instructions:

https://github.com/ryantm/nixpkgs-update/blob/da82da1b5d00bc119722492d857c4d5f63b5041a/doc/installation.md

Because default.nix is missing, -f https://github.com/ryantm/nixpkgs-update/archive/main.tar.gz no longer works.

See also #335.

Please sign in to comment.