Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rework nix instructions now that nixpkgs has it #28

Merged
merged 1 commit into from
Nov 20, 2022
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
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,11 @@ process-compose -f /path/to/process-compose.yaml
- If you have the Nix package manager installed with Flake support, just run:

```sh
nix run github:F1bonacc1/process-compose
# to use the latest binary release
nix run nixpkgs/master#process-compose -- --help

# or to compile from the latest source
nix run github:F1bonacc1/process-compose -- --help
```

### Documentation
Expand Down
6 changes: 3 additions & 3 deletions default.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{ config, lib, pkgs, installShellFiles, ... }:
{ buildGoModule, config, lib, pkgs, installShellFiles, version ? "latest" }:
F1bonacc1 marked this conversation as resolved.
Show resolved Hide resolved

pkgs.buildGoModule rec {
buildGoModule {
pname = "process-compose";
version = "0.24.1";
version = version;
src = ./.;
ldflags = [ "-X main.version=v${version}" ];

Expand Down
4 changes: 3 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
};
in {
overlays.default = final: prev: {
process-compose = final.callPackage ./default.nix { };
process-compose = final.callPackage ./default.nix {
version = self.shortRev or "dirty";
};
};
overlay = self.overlays.default;
packages = { inherit (pkgs) process-compose; };
Expand Down