Skip to content

Commit

Permalink
Merge pull request #358 from mig4ng/add-nix-build
Browse files Browse the repository at this point in the history
Add nix build command to Update.hs
  • Loading branch information
ryantm authored Aug 29, 2023
2 parents 1033305 + 21ce630 commit b9f95c6
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Update.hs
Original file line number Diff line number Diff line change
Expand Up @@ -568,6 +568,10 @@ prMessage updateEnv isBroken metaDescription metaHomepage metaChangelog rewriteM
```
nix-build -A $attrPath https://github.com/$ghUser/nixpkgs/archive/$commitRev.tar.gz
```
Or:
```
nix build github:$ghUser/nixpkgs/$commitRev#$attrPath
```

After you've downloaded or built it, look at the files and if there are any, run the binaries:
```
Expand Down
4 changes: 4 additions & 0 deletions test_data/expected_pr_description_1.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ meta.changelog for foobar is: "https://foobar-homepage.com/changelog/v1.2.3"
```
nix-build -A foobar https://github.com/r-ryantm/nixpkgs/archive/af39cf77a0d42a4f6771043ec54221ed.tar.gz
```
Or:
```
nix build github:r-ryantm/nixpkgs/af39cf77a0d42a4f6771043ec54221ed#foobar
```

After you've downloaded or built it, look at the files and if there are any, run the binaries:
```
Expand Down
4 changes: 4 additions & 0 deletions test_data/expected_pr_description_2.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ meta.changelog for foobar is: "https://foobar-homepage.com/changelog/v1.2.3"
```
nix-build -A foobar https://github.com/r-ryantm/nixpkgs/archive/af39cf77a0d42a4f6771043ec54221ed.tar.gz
```
Or:
```
nix build github:r-ryantm/nixpkgs/af39cf77a0d42a4f6771043ec54221ed#foobar
```

After you've downloaded or built it, look at the files and if there are any, run the binaries:
```
Expand Down

0 comments on commit b9f95c6

Please sign in to comment.