Add the package definition

This commit is contained in:
Solene Rapenne 2021-06-06 16:13:18 +02:00
parent 2a454b30b2
commit 41e8fdbae9
1 changed files with 29 additions and 3 deletions

View File

@ -6,10 +6,36 @@ This is inspired by the [steam-run](https://nixos.wiki/wiki/Steam#steam-run) wra
# Usage
You need to have to following packages installed to make it work: `gcc-objc++:lib glibc glib gcc gtk+ libxcomposite dbus-glib libxt`.
You need to have to following packages installed to make it work: `gcc-objc++:lib gtk+` but this may depend on what you are running.
Then to use it, it's as easy as: `linux-run ./some_executable`.
# Integration
# Guix package definition
I will try to make it as a package into Guix so it will install the required dependencies in the profile when you install it.
```
(define-public linux-run
(package
(name "linux-run")
(version "1.0.0")
(source (origin
(method git-fetch)
(uri (git-reference
(url "https://tildegit.org/solene/guix-linux-run")
(commit version)))
(file-name (git-file-name name version))
(sha256
(base32
"0prh4i68xw6r8vkzz3g7njfgsj32i1viw17rbrhds25dr64zi070"))))
(build-system copy-build-system)
(arguments
'(#:install-plan
'(("linux-run" "bin/"))))
(propagated-inputs
`(("gtk+" ,gtk+)
("gcc-objc++:lib" ,gcc-objc++ "lib")))
(home-page "https://tildegit.org/solene/guix-linux-run")
(synopsis "Wrapper to run Linux binaries that are not from Guix")
(description "This package provides a shell wrapper that will redefine
the environment to use Guix libraries for running a Linux binary.")
(license license:bsd-2)))
```